Search Unity

Animated sprites?

Discussion in '2D' started by jabytheories_unity, Sep 12, 2021.

  1. jabytheories_unity

    jabytheories_unity

    Joined:
    Jul 15, 2021
    Posts:
    2
    How would I create a 2D animated background for a unity game? I currently have a high-quality animation that I want to implement into the background of the game. I know for sure I can't use sprite sheets, because there are 6 frames in total, and each one is 1920x1080. I do NOT want to make a 3D game, I'm going for a point and click game, and I want it to look 3D but be 2D. How would I do this?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,689
    If you make each background a sprite, then select all six of the sprites at once and drag them into your scene, Unity will do a whole bunch of things all at once for you:

    - make a GameObject with an Animator and SpriteRenderer
    - make an Animation Controller asset
    - make an Animation of the sprites cycling

    It's like one-stop-shop to animate a series of sprites, then you can tweak the resulting outputs, move it around, etc.
     
  3. Vryken

    Vryken

    Joined:
    Jan 23, 2018
    Posts:
    2,106
    Assuming each frame is a separate image file, you can select them all, drag/drop them into the Unity assets window, and Unity will automatically prompt you to create an animation with them.

    You can then apply the animation to a SpriteRenderer in the scene.