What is GDscripts version of C#s THIS

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Millard

In unity, you can us the this variable to get the object the script is attached to. Does Godot have something like this?

:bust_in_silhouette: Reply From: miskotam

self is the reference you are looking for.
You can find examples for the usage of it in Godot docs

thanks, it worked. :slight_smile:

Millard | 2020-10-03 23:34

1 Like