-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Update AnimationTrack.yaml #1027
Conversation
Hi @lack-of-gravity-jack , code samples aren't yet open sourced. Could you please tell me which sample to update (which API specifically) and then paste the full modified sample in a comment here? I'll take it from there. Thanks! |
"Code Samples A connection is made listening to the Humanoid.AnimationPlayed and the name of the underlying animation is printed. Please note that AnimationPlayed is a member of both Humanoid and AnimationController which this example would also work on" Under properties: Animation Suggested edit: change the description text above the code sample to remove references to Humanoid.AnimationPlayed and AnimationController.AnimationPlayed, change the code sample to use Humanoid.Animator.AnimationPlayed:Connect() |
Code Samples This script can be placed in a model with a Listen For New Animations local Animator = script.Parent.Humanoid.Animator listenForNewAnimations(Animator) |
Cool. So for the first code sample, I'm planning to change it to this (remove the arbitrary function and make it wait for an Animator to connect the event to). I'm hesitant to add another
|
FYI, |
The Humanoid and AniamtionController's .AnimationPlayed events are deprecated, so I figured the AnimationTrack doc page should get rid of the code samples that use the event directly from a Humanoid The changed code sample looks good. I don't get why there was an arbitrary function to set up the listener in the original either. |
Nice! I'll merge this and also update the code sample. |
Changes
animation controller methods are deprecated in favor of directly using animator
there's some code samples I want to change but I don't know how to. Where can I find it? "Please note that AnimationPlayed is a member of both Humanoid and AnimationController which this example would also work on." <- i cant find this line but i see it on the docs page
Checks
By submitting your pull request for review, you agree to the following: