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

Animation Player Keyframe callback track doesn't allow setting a callback from attached script unless script has same name as AnimationPlayer node using C# #37803

Closed
instantaphex opened this issue Apr 11, 2020 · 2 comments

Comments

@instantaphex
Copy link

Godot version:
3.2.1
OS/device including version:
MacOS Catalina 10.15
Issue description:
When adding a Call Method Track to the AnimationPlayer, I'm not able to use methods from attached script unless that script has the same name as the AnimationPlayer node itself.
Steps to reproduce:
1.) Create an animation player
2.) Attach a C# script with a name that differs from the node name
3.) Add a Call Method Track to the animation player
4.) Add a keyframe and notice that none of the Script Methods are available for selection
5.) Change the name of the script to match the node name and add a keyframe. The methods are now available

@IRONIC3D
Copy link

I had similar issue with GDScripts Built-in. After saving I have to quit and open Godot, the call-back function will see the script functions. That seems to solve the problem for me.

@akien-mga
Copy link
Member

Fixed by #52607.

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

No branches or pull requests

4 participants