Retrieves an array of animation clips associated with a GameObject or component. GetAnimationClips(Animation)
is obsolete and has been replaced with GetAnimationClips(GameObject)
.
This method retrieves animation clips from the Animator or Animation component. This method works with any component that has implemented the IAnimationClipSource interface.