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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Is it possible to iterater all sprite in multisprite sheet?

Discussion in 'Scripting' started by KILEYI, Jan 22, 2018.

  1. KILEYI

    KILEYI

    Joined:
    Mar 7, 2015
    Posts:
    52
    I want to instance all sprite of specified multisprite to Gameobject sprite,and with gameobject name same with sprite name.

    Can unity do that?If can how?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,798
    If you select all sprites and drag into scene, it will put them all on one object, make an animator and an animation to cycle through them all. Is that what you want?
     
  3. KILEYI

    KILEYI

    Joined:
    Mar 7, 2015
    Posts:
    52
    No,I want each sprite with each gameobject,not all in one.
    Right now I have to drag sprite into scene one by one,and it's kind of tired when it's more than 50.