mirror of
https://github.com/godotengine/godot-visual-script.git
synced 2026-01-05 22:10:23 +03:00
doc: Replace all [code]CONSTANT[/code] by new [constant CONSTANT] hyperlinks
This commit is contained in:
@@ -194,19 +194,19 @@
|
|||||||
Serialize a [Variant] to a string.
|
Serialize a [Variant] to a string.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="STR_TO_VAR" value="60" enum="BuiltinFunc">
|
<constant name="STR_TO_VAR" value="60" enum="BuiltinFunc">
|
||||||
Deserialize a [Variant] from a string serialized using [code]VAR_TO_STR[/code].
|
Deserialize a [Variant] from a string serialized using [constant VAR_TO_STR].
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="VAR_TO_BYTES" value="61" enum="BuiltinFunc">
|
<constant name="VAR_TO_BYTES" value="61" enum="BuiltinFunc">
|
||||||
Serialize a [Variant] to a [PoolByteArray].
|
Serialize a [Variant] to a [PoolByteArray].
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="BYTES_TO_VAR" value="62" enum="BuiltinFunc">
|
<constant name="BYTES_TO_VAR" value="62" enum="BuiltinFunc">
|
||||||
Deserialize a [Variant] from a [PoolByteArray] serialized using [code]VAR_TO_BYTES[/code].
|
Deserialize a [Variant] from a [PoolByteArray] serialized using [constant VAR_TO_BYTES].
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="COLORN" value="63" enum="BuiltinFunc">
|
<constant name="COLORN" value="63" enum="BuiltinFunc">
|
||||||
Return the [Color] with the given name and alpha ranging from 0 to 1. Note: names are defined in color_names.inc.
|
Return the [Color] with the given name and alpha ranging from 0 to 1. Note: names are defined in color_names.inc.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="MATH_SMOOTHSTEP" value="64" enum="BuiltinFunc">
|
<constant name="MATH_SMOOTHSTEP" value="64" enum="BuiltinFunc">
|
||||||
Return a number smoothly interpolated between the first two inputs, based on the third input. Similar to [code]MATH_LERP[/code], but interpolates faster at the beginning and slower at the end. Using Hermite interpolation formula:
|
Return a number smoothly interpolated between the first two inputs, based on the third input. Similar to [constant MATH_LERP], but interpolates faster at the beginning and slower at the end. Using Hermite interpolation formula:
|
||||||
[codeblock]
|
[codeblock]
|
||||||
var t = clamp((weight - from) / (to - from), 0.0, 1.0)
|
var t = clamp((weight - from) / (to - from), 0.0, 1.0)
|
||||||
return t * t * (3.0 - 2.0 * t)
|
return t * t * (3.0 - 2.0 * t)
|
||||||
|
|||||||
@@ -125,7 +125,7 @@
|
|||||||
Execute the custom node's logic, returning the index of the output sequence port to use or a [String] when there is an error.
|
Execute the custom node's logic, returning the index of the output sequence port to use or a [String] when there is an error.
|
||||||
The [code]inputs[/code] array contains the values of the input ports.
|
The [code]inputs[/code] array contains the values of the input ports.
|
||||||
[code]outputs[/code] is an array whose indices should be set to the respective outputs.
|
[code]outputs[/code] is an array whose indices should be set to the respective outputs.
|
||||||
The [code]start_mode[/code] is usually [code]START_MODE_BEGIN_SEQUENCE[/code], unless you have used the STEP_* constants.
|
The [code]start_mode[/code] is usually [constant START_MODE_BEGIN_SEQUENCE], unless you have used the STEP_* constants.
|
||||||
[code]working_mem[/code] is an array which can be used to persist information between runs of the custom node.
|
[code]working_mem[/code] is an array which can be used to persist information between runs of the custom node.
|
||||||
When returning, you can mask the returned value with one of the STEP_* constants.
|
When returning, you can mask the returned value with one of the STEP_* constants.
|
||||||
</description>
|
</description>
|
||||||
|
|||||||
Reference in New Issue
Block a user