2017-09-12 22:42:36 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2021-04-26 13:14:51 +02:00
|
|
|
<class name="VisualScriptPropertySet" inherits="VisualScriptNode" version="3.4">
|
2017-09-12 22:42:36 +02:00
|
|
|
<brief_description>
|
2020-10-12 19:37:50 +02:00
|
|
|
A Visual Script node that sets a property of an [Object].
|
2017-09-12 22:42:36 +02:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2020-10-12 19:37:50 +02:00
|
|
|
[VisualScriptPropertySet] can set the value of any property from the current object or other objects.
|
2017-09-12 22:42:36 +02:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
</methods>
|
|
|
|
<members>
|
2019-06-29 12:38:01 +02:00
|
|
|
<member name="assign_op" type="int" setter="set_assign_op" getter="get_assign_op" enum="VisualScriptPropertySet.AssignOp" default="0">
|
2020-10-12 19:37:50 +02:00
|
|
|
The additional operation to perform when assigning. See [enum AssignOp] for options.
|
2017-09-12 22:42:36 +02:00
|
|
|
</member>
|
2019-06-29 21:22:15 +02:00
|
|
|
<member name="base_script" type="String" setter="set_base_script" getter="get_base_script">
|
2020-10-12 19:37:50 +02:00
|
|
|
The script to be used when [member set_mode] is set to [constant CALL_MODE_INSTANCE].
|
2017-09-12 22:42:36 +02:00
|
|
|
</member>
|
2019-06-29 12:38:01 +02:00
|
|
|
<member name="base_type" type="String" setter="set_base_type" getter="get_base_type" default=""Object"">
|
2020-10-12 19:37:50 +02:00
|
|
|
The base type to be used when [member set_mode] is set to [constant CALL_MODE_INSTANCE].
|
2017-09-12 22:42:36 +02:00
|
|
|
</member>
|
2019-06-29 21:22:15 +02:00
|
|
|
<member name="basic_type" type="int" setter="set_basic_type" getter="get_basic_type" enum="Variant.Type">
|
2020-10-12 19:37:50 +02:00
|
|
|
The type to be used when [member set_mode] is set to [constant CALL_MODE_BASIC_TYPE].
|
2017-09-12 22:42:36 +02:00
|
|
|
</member>
|
2019-06-29 21:22:15 +02:00
|
|
|
<member name="index" type="String" setter="set_index" getter="get_index">
|
2020-10-12 19:37:50 +02:00
|
|
|
The indexed name of the property to set. See [method Object.set_indexed] for details.
|
2017-09-12 22:42:36 +02:00
|
|
|
</member>
|
2019-06-29 21:22:15 +02:00
|
|
|
<member name="node_path" type="NodePath" setter="set_base_path" getter="get_base_path">
|
2020-10-12 19:37:50 +02:00
|
|
|
The node path to use when [member set_mode] is set to [constant CALL_MODE_NODE_PATH].
|
2017-09-12 22:42:36 +02:00
|
|
|
</member>
|
2019-06-29 12:38:01 +02:00
|
|
|
<member name="property" type="String" setter="set_property" getter="get_property" default="""">
|
2020-10-12 19:37:50 +02:00
|
|
|
The name of the property to set. Changing this will clear [member index].
|
2017-09-12 22:42:36 +02:00
|
|
|
</member>
|
2019-06-29 12:38:01 +02:00
|
|
|
<member name="set_mode" type="int" setter="set_call_mode" getter="get_call_mode" enum="VisualScriptPropertySet.CallMode" default="0">
|
2020-10-12 19:37:50 +02:00
|
|
|
[code]set_mode[/code] determines the target object on which the property will be set. See [enum CallMode] for options.
|
2017-09-12 22:42:36 +02:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="CALL_MODE_SELF" value="0" enum="CallMode">
|
2020-10-12 19:37:50 +02:00
|
|
|
The property will be set on this [Object].
|
2017-09-12 22:42:36 +02:00
|
|
|
</constant>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="CALL_MODE_NODE_PATH" value="1" enum="CallMode">
|
2020-10-12 19:37:50 +02:00
|
|
|
The property will be set on the given [Node] in the scene tree.
|
2017-09-12 22:42:36 +02:00
|
|
|
</constant>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="CALL_MODE_INSTANCE" value="2" enum="CallMode">
|
2020-10-12 19:37:50 +02:00
|
|
|
The property will be set on an instanced node with the given type and script.
|
2017-09-12 22:42:36 +02:00
|
|
|
</constant>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="CALL_MODE_BASIC_TYPE" value="3" enum="CallMode">
|
2020-10-12 19:37:50 +02:00
|
|
|
The property will be set on a GDScript basic type (e.g. [Vector2]).
|
2017-09-16 01:46:14 +02:00
|
|
|
</constant>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="ASSIGN_OP_NONE" value="0" enum="AssignOp">
|
2020-10-12 19:37:50 +02:00
|
|
|
The property will be assigned regularly.
|
2017-09-16 01:46:14 +02:00
|
|
|
</constant>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="ASSIGN_OP_ADD" value="1" enum="AssignOp">
|
2020-10-12 19:37:50 +02:00
|
|
|
The value will be added to the property. Equivalent of doing [code]+=[/code].
|
2017-09-16 01:46:14 +02:00
|
|
|
</constant>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="ASSIGN_OP_SUB" value="2" enum="AssignOp">
|
2020-10-12 19:37:50 +02:00
|
|
|
The value will be subtracted from the property. Equivalent of doing [code]-=[/code].
|
2017-09-16 01:46:14 +02:00
|
|
|
</constant>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="ASSIGN_OP_MUL" value="3" enum="AssignOp">
|
2020-10-12 19:37:50 +02:00
|
|
|
The property will be multiplied by the value. Equivalent of doing [code]*=[/code].
|
2017-09-16 01:46:14 +02:00
|
|
|
</constant>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="ASSIGN_OP_DIV" value="4" enum="AssignOp">
|
2020-10-12 19:37:50 +02:00
|
|
|
The property will be divided by the value. Equivalent of doing [code]/=[/code].
|
2017-09-16 01:46:14 +02:00
|
|
|
</constant>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="ASSIGN_OP_MOD" value="5" enum="AssignOp">
|
2020-10-12 19:37:50 +02:00
|
|
|
A modulo operation will be performed on the property and the value. Equivalent of doing [code]%=[/code].
|
2017-09-16 01:46:14 +02:00
|
|
|
</constant>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="ASSIGN_OP_SHIFT_LEFT" value="6" enum="AssignOp">
|
2020-10-12 19:37:50 +02:00
|
|
|
The property will be binarly shifted to the left by the given value. Equivalent of doing [code]<<[/code].
|
2017-09-16 01:46:14 +02:00
|
|
|
</constant>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="ASSIGN_OP_SHIFT_RIGHT" value="7" enum="AssignOp">
|
2020-10-12 19:37:50 +02:00
|
|
|
The property will be binarly shifted to the right by the given value. Equivalent of doing [code]>>[/code].
|
2017-09-16 01:46:14 +02:00
|
|
|
</constant>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="ASSIGN_OP_BIT_AND" value="8" enum="AssignOp">
|
2020-10-12 19:37:50 +02:00
|
|
|
A binary [code]AND[/code] operation will be performed on the property. Equivalent of doing [code]&=[/code].
|
2017-09-16 01:46:14 +02:00
|
|
|
</constant>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="ASSIGN_OP_BIT_OR" value="9" enum="AssignOp">
|
2020-10-12 19:37:50 +02:00
|
|
|
A binary [code]OR[/code] operation will be performed on the property. Equivalent of doing [code]|=[/code].
|
2017-09-16 01:46:14 +02:00
|
|
|
</constant>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="ASSIGN_OP_BIT_XOR" value="10" enum="AssignOp">
|
2020-10-12 19:37:50 +02:00
|
|
|
A binary [code]XOR[/code] operation will be performed on the property. Equivalent of doing [code]^=[/code].
|
2017-09-16 01:46:14 +02:00
|
|
|
</constant>
|
2017-09-12 22:42:36 +02:00
|
|
|
</constants>
|
|
|
|
</class>
|