mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
More precise documentation about property underlying access (#7362)
Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8a09a24999
commit
c4db831703
@@ -1579,8 +1579,8 @@ Example::
|
||||
set(value):
|
||||
milliseconds = value * 1000
|
||||
|
||||
Using the variable name inside its own setter or getter will directly access the underlying member, so it
|
||||
won't generate infinite recursion and saves you from explicitly declaring another variable::
|
||||
Using the variable's name to set it inside its own setter or to get it inside its own getter will directly access the underlying member,
|
||||
so it won't generate infinite recursion and saves you from explicitly declaring another variable::
|
||||
|
||||
signal changed(new_value)
|
||||
var warns_when_changed = "some value":
|
||||
|
||||
Reference in New Issue
Block a user