Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | char0xff |
A lot of the engine class members have set/get methods. Should I use those or can I just directly use the member variable?
An example is “owner”.
Should I do:
set_owner(parent)
or
owner = parent
?
I suppose it’s the same and the user can choose what fits him better, but I like to follow guidelines/rules, and there doesn’t seem to be anything in the docs about this.
There is GDScript Style Guide — Godot Engine (3.0) documentation in English , but nothing about this issue.