Search Unity

Question 2D Sprite not showing certain frames

Discussion in 'Animation' started by PatrickKersey, Aug 8, 2020.

  1. PatrickKersey

    PatrickKersey

    Joined:
    Jun 19, 2020
    Posts:
    1
    SkippingFrames.gif Animation does not display frames for some reason? I get the same problem for different animations. (very new to unity)
     
    Last edited: Aug 8, 2020
  2. BlitzBlitzCandy

    BlitzBlitzCandy

    Joined:
    Jun 20, 2019
    Posts:
    11
    I can't see the minor details very well. But could it be the camera needs to be zoomed out or a layer issue? I have experience similar issue if two objects are on the same layer or sorting layer. Maybe the background game object and the bird gameobject is on the same layer?

    Have you tried setting the different layers for each object?
     
  3. hansheidmann

    hansheidmann

    Joined:
    Jan 25, 2021
    Posts:
    1
    This should help:
    1. Select your Background and your Player sprite one at a time in the Hierarchy to check the Order On Layer property for each. If Order On Layer = 0 for your Background, then set Order On Layer >= 1 for a Player, Enemies, etc.
    2. Make sure the Pixels Per Unit property is set to the right number (size) for your sprite since it is 100 by default. If you are using 16x16 pixels sprites, then set Pixels Per Unit = 16.
     
    dislitas20 likes this.