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

My background and the rest of the elements has over lapped.

Discussion in '2D' started by Recluse-Rohan, Mar 1, 2020.

  1. Recluse-Rohan

    Recluse-Rohan

    Joined:
    Dec 14, 2015
    Posts:
    26
    Hello there,
    I am making a scene by using the free, package, I'm a student so don't know much about layering, so just created a scene and started complying these assets (Sprites mainly) to make up the scene; but when I ran the scene, the main background overlapped with the other sprites, and now bg sprite is in the front and rest are in the back.
    Any guess, please
    Thank you Problem.png
    2D Handcrafted Art
     
  2. Tom-Atom

    Tom-Atom

    Joined:
    Jun 29, 2014
    Posts:
    153
    SpriteRenderer has these two parameters:
    - Sorting Layer
    - Order in Layer
    Use it to set priority for your sprites.

    Order is determined by (in this order): Sorting Layer, Order in Layer and Z coordinate.
     
  3. Recluse-Rohan

    Recluse-Rohan

    Joined:
    Dec 14, 2015
    Posts:
    26
    Hey, thanks for the support, now I've created the scene and layering is been taken care of, everything was fine till I changed the platform to Andriod, as the game was meant for mobile (Andriod), and everything is BLUE in color, I really don't know what has happened.
    All the elements are present in their proper position, as it was earlier but the color.
    Please share your value able feedback.
    Thanks. Problem.png Problem.png the whole scene is this blue.
     
  4. Recluse-Rohan

    Recluse-Rohan

    Joined:
    Dec 14, 2015
    Posts:
    26
    I would like to add something to this conversation which is highly important, I again changed the platform to PC Standalone and now the scene is again back to normal, its very difficult to know what is happening.
    Please guide me.
    Thanks.