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 documentation is unclear on how to do some stuff you can do with AnimationPlayer #4386

Open
silverweed opened this issue Nov 18, 2020 · 2 comments
Labels
area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository enhancement

Comments

@silverweed
Copy link

Your Godot version: 3.2.2

Issue description: This PR clarified the fact that, if you have an AnimationTree, certain fields and methods of the linked AnimationPlayer return bogus values. It also added a vague statement to the doc that says: "Playback and transitions should be handled using only the AnimationTree and its constituent AnimationNode(s).".

However it's still totally obscure to me how to achieve things like:

  • getting the current animation (equivalent of AnimationPlayer.current_animation)
  • getting the current animation position (current_animation_position)
  • getting the current animation length (current_animation_length)
  • etc. (basically all the list reported in the PR linked above).

It's also unclear how to get a specific AnimationNode from the AnimationTree in order to even start "using" it like the doc is suggesting.

Are there ways to do the stuff listed above? Could the doc be updated to point users to the right direction?

URL to the documentation page (if already existing): https://docs.godotengine.org/en/stable/classes/class_animationnode.html#class-animationnode

@Hiiamwilliam
Copy link

Not sure if you still care, but it seems the things in that list are not really possible. Check this comment/thread. Signals and other information like current animation that the AnimationPlayer provides aren't considered in an AnimationTree.

It's also unclear how to get a specific AnimationNode from the AnimationTree

That I agree with. I've opened a new issue for that: #6079

@silverweed
Copy link
Author

Thanks for the reply. I don't remember how I solved my specific case that made me open this issue (or even what it was) but I think it's very useful to add this information to the docs (as it's a problem that I bump into relatively regularly - but not as regularly as to actually remember how to solve it right away), so thank you for opening the issue!

@skyace65 skyace65 added the area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository label Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:class reference Issues and PRs about the class reference, which should be addressed on the Godot engine repository enhancement
Projects
None yet
Development

No branches or pull requests

3 participants