Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Why unity always make animation from sliced sprite?

Discussion in '2D' started by adibnafisudin, Aug 11, 2023.

  1. adibnafisudin

    adibnafisudin

    Joined:
    Sep 3, 2021
    Posts:
    4
    I want to make multiple game object from sliced sprite and not animation. the only way i can add new game object from each sliced sprite is to add it manually and that is the problem. is there any possible way this can be done? or perhaps split sprite purpose is purely for animation
     
  2. Xiangting_Su

    Xiangting_Su

    Unity Technologies

    Joined:
    Sep 22, 2020
    Posts:
    246
    Hey @adibnafisudin thank you for your question!
    Do you mean when dragging in multiple sprites from the Project window into the Scene view? A simple way to tell Unity to not create animation from the dragged sprites/textures is to hold down alt in Win (or opt in Mac) when dragging.

    This way, instead of creating an animation clip by default, it creates multiple game objects for the dragged in sprites in the Scene view/Hierarchy panel. So it saves you the trouble of having to do one-by-one.

    Slicing sprites from a character sheet is great for animation, flipbook, cut-out, skeletal. Although many users also slice the textures such as environment sheets into multiple sprites or tilesets (into tiles) for other reasons such as world building and use them for Sprite Shapes, Tilemaps or even 9-slice for UI etc. Or sometimes to simply use them as single sprites. So it's useful not just for animation.

    Hope this clarifies and happy creating! ;)
     
  3. adibnafisudin

    adibnafisudin

    Joined:
    Sep 3, 2021
    Posts:
    4
    Yeah that is exactly what I want. thank you, this save me a lot of time