Unclear if property setters and getters are supported #110
Closed
minkezhang
started this conversation in
Is this a bug?
Replies: 2 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.
0 replies
-
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.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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