Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animationtree set function no longer working #72526

Closed
oxixxixo opened this issue Feb 1, 2023 · 1 comment · Fixed by godotengine/godot-docs#6764
Closed

Animationtree set function no longer working #72526

oxixxixo opened this issue Feb 1, 2023 · 1 comment · Fixed by godotengine/godot-docs#6764

Comments

@oxixxixo
Copy link

oxixxixo commented Feb 1, 2023

Godot version

Godot 4.0 beta 14 and up

System information

Windows 10 education 21H2, mobile renderer

Issue description

Starting in beta 14 the term used for setting which state a transition node in an animationtreenodeblendtree is set to was changed from current to current_state. In beta 14 and up using neither current nor current_state seems to work. In beta 13 using current would work but beta 14 and up return the error:
"Invalid set index 'parameters/Transition/current_state' (on base: 'AnimationTree') with value of type 'float'
using typoeof() shows it's of type string though using '1' 'state 1' 'state_1' or changing the states name to something like 'hi' (doing so will also break the transition request in the inspector) and using that makes no difference (though doesn't return an error).

image
image taken from: https://docs.godotengine.org/en/latest/tutorials/animation/animation_tree.html#blend-tree

Steps to reproduce

create a project with an animationtree and animation player as children of the root node. Add an animationtreenodeblendtree to the animationtree and set up a transition like shown below. Then try to transition between animations in gdscript.

image

Minimal reproduction project

animationtree bugtest 2-1-23.zip

@TokageItLab
Copy link
Member

TokageItLab commented Feb 1, 2023

It is changed to Transition/transition_request in #71418 to restart same state, The current documentation is out of sync. We will rewrite it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants