Attention | Topic was automatically imported from the old Question2Answer platform. | |
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?
Attention | Topic was automatically imported from the old Question2Answer platform. | |
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?
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.
Millard | 2020-10-03 23:34