Unclear if property setters and getters are supported #110
Replies: 3 comments 2 replies
-
Ah, yes currently the interface for this is Set(string, any) bool The object virtual methods are implicitly defined in the The canonical method signatures should probably be documented in the |
Beta Was this translation helpful? Give feedback.
-
I have tried implementing a class to override
And in my GDScript
But it does not seem like |
Beta Was this translation helpful? Give feedback.
-
Have updated the variant/Object package with an |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
See https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_basics.html#properties-setters-and-getters.
When attempting to override a setter of a base class, GDScript offers the
_set(k, v)
syntax. This is a feature which is accessible via GDExtension as well (source).Is
or
syntax supported in graphics.gd?
I see this in internal/api.go --
However, attempting to override this in a class --
does not seem to be called in GDScript --
Beta Was this translation helpful? Give feedback.
All reactions