Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity prefab creation process from multiple sprites

Discussion in '2D' started by calebdvn, Jan 22, 2019.

  1. calebdvn

    calebdvn

    Joined:
    Jan 10, 2019
    Posts:
    3
    I am making a prefab of a simple building by combining sprites. As you can see in the Hierarchy view, this simple building is composed of very many gameobjects which I created via dragging sprites into the scene/Hierarchy and then manually editing their coordinate positions.

    Is there a simpler way of doing this? I feel that the process of creating this building consumed too much time I could spend on other aspects of development. If this is the only way, then in what ways could I optimize my workflow?




    Ideally, I would like to combine the sprites somewhere, and then save it as a single object. Then I would add a couple objects on top, such as the doors which need to open
     
    Last edited: Jan 22, 2019
  2. Primoz56

    Primoz56

    Joined:
    May 9, 2018
    Posts:
    369
    considering you've already built it, you can drag your building main object into your resources folder and use it as a prefab. otherwise if they don't need to be built as seperate tiles/objects why not just do what you done here in some sort of paint program?