Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
VisualScriptPropertyGet¶
Inherits: VisualScriptNode < Resource < Reference < Object
A Visual Script node returning a value of a property from an Object.
Descripción¶
VisualScriptPropertyGet
can return a value of any property from the current object or other objects.
Propiedades¶
|
||
|
||
|
Enumeraciones¶
enum CallMode:
CALL_MODE_SELF = 0 --- The property will be retrieved from this Object.
CALL_MODE_NODE_PATH = 1 --- The property will be retrieved from the given Node in the scene tree.
CALL_MODE_INSTANCE = 2 --- The property will be retrieved from an instanced node with the given type and script.
CALL_MODE_BASIC_TYPE = 3 --- The property will be retrieved from a GDScript basic type (e.g. Vector2).
Descripciones de Propiedades¶
String base_script
Setter |
set_base_script(value) |
Getter |
get_base_script() |
The script to be used when set_mode is set to CALL_MODE_INSTANCE.
String base_type
Default |
|
Setter |
set_base_type(value) |
Getter |
get_base_type() |
The base type to be used when set_mode is set to CALL_MODE_INSTANCE.
Variant.Type basic_type
Setter |
set_basic_type(value) |
Getter |
get_basic_type() |
The type to be used when set_mode is set to CALL_MODE_BASIC_TYPE.
String index
Setter |
set_index(value) |
Getter |
get_index() |
The indexed name of the property to retrieve. See Object.get_indexed for details.
NodePath node_path
Setter |
set_base_path(value) |
Getter |
get_base_path() |
The node path to use when set_mode is set to CALL_MODE_NODE_PATH.
String property
Default |
|
Setter |
set_property(value) |
Getter |
get_property() |
The name of the property to retrieve. Changing this will clear index.
CallMode set_mode
Default |
|
Setter |
set_call_mode(value) |
Getter |
get_call_mode() |
set_mode
determines the target object from which the property will be retrieved. See CallMode for options.