unity3d animator get current animation code example Example: how to get the current gameobject animator in unity Animator animator = this.GetComponent<Animator>();