diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-06-28 21:40:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 21:40:29 +0200 |
commit | fed5ebb24b30e61c56206638631245367acf1c73 (patch) | |
tree | 25330d3c0ee055786a16be177110821163f99dcc /doc | |
parent | f6072c9c98f11797e31a2076d17b580a6c651679 (diff) | |
parent | 75a8606b8335bb6e16b13909fa7f7ae09bed3882 (diff) |
Merge pull request #61196 from V-Sekai/animtree-advance-expressions
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/AnimationNodeStateMachineTransition.xml | 6 | ||||
-rw-r--r-- | doc/classes/AnimationTree.xml | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/AnimationNodeStateMachineTransition.xml b/doc/classes/AnimationNodeStateMachineTransition.xml index 94e6a2f23d..206164d675 100644 --- a/doc/classes/AnimationNodeStateMachineTransition.xml +++ b/doc/classes/AnimationNodeStateMachineTransition.xml @@ -19,6 +19,12 @@ [/csharp] [/codeblocks] </member> + <member name="advance_expression" type="String" setter="set_advance_expression" getter="get_advance_expression" default=""""> + Use an expression as a condition for state machine transitions. It is possible to create complex animation advance conditions for switching between states and gives much greater flexibility for creating complex state machines by directly interfacing with the script code. + </member> + <member name="advance_expression_base_node" type="NodePath" setter="set_advance_expression_base_node" getter="get_advance_expression_base_node" default="NodePath("")"> + The path to the [Node] used to evaluate an [Expression] if one is not explictly specified internally. + </member> <member name="auto_advance" type="bool" setter="set_auto_advance" getter="has_auto_advance" default="false"> Turn on the transition automatically when this state is reached. This works best with [constant SWITCH_MODE_AT_END]. </member> diff --git a/doc/classes/AnimationTree.xml b/doc/classes/AnimationTree.xml index 67e64c6bee..ecac228a26 100644 --- a/doc/classes/AnimationTree.xml +++ b/doc/classes/AnimationTree.xml @@ -37,6 +37,9 @@ <member name="active" type="bool" setter="set_active" getter="is_active" default="false"> If [code]true[/code], the [AnimationTree] will be processing. </member> + <member name="advance_expression_base_node" type="NodePath" setter="set_advance_expression_base_node" getter="get_advance_expression_base_node" default="NodePath(".")"> + The path to the [Node] used to evaluate the AnimationNode [Expression] if one is not explictly specified internally. + </member> <member name="anim_player" type="NodePath" setter="set_animation_player" getter="get_animation_player" default="NodePath("")"> The path to the [AnimationPlayer] used for animating. </member> |