Search Unity

Why 2d gameobject has no Animation component

Discussion in '2D' started by sasalicat, Feb 20, 2017.

  1. sasalicat

    sasalicat

    Joined:
    Feb 20, 2017
    Posts:
    1
    I just create a new Sprite and it`s animator
    when I want to change some animatoionclip`s speed.I find that:the Sprite does not have a Animation Component.
    also getComponent<Animation>(); can find nothing
    It has Animator.
    what`s wrong?
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Animator is not the same as Animation. Nothing's wrong. Your sprite just has an Animator, not an Animation.