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. Dismiss Notice

Drawing particles over the "Screen space - overlay" UI canvas

Discussion in '2D' started by ShellpadInteractive, Jan 3, 2015.

  1. ShellpadInteractive

    ShellpadInteractive

    Joined:
    Oct 20, 2014
    Posts:
    13
    Dear Unity users,

    I am currently working on a project for mobile devices with Unity 4.6.

    Right now I want to draw some particle effects on top of a UI overlay I made using the new UI system in Unity. However, no matter what I try I cannot get the particles to be drawn on top of the UI layer I have already.
    Is there any way to draw particles(or other Game Objects) on top of the "screen space - overlay" UI layer?
     
  2. melkior

    melkior

    Joined:
    Jul 20, 2013
    Posts:
    199
    Not at home so I can't do any testing to verify but some suggestions:

    - can you mark your effect as part of the GUI layer so this will draw on/above it?
    - can you make a layer above the GUI layer and assign these effects to that layer?
    - does nesting the prefab for the particle effect within the GUI canvas effect its visibility/draw order?
     
  3. NeatWolf

    NeatWolf

    Joined:
    Sep 27, 2013
    Posts:
    924
    Hi,
    did you find a solution for this?
     
  4. DarkCooker

    DarkCooker

    Joined:
    Jan 7, 2015
    Posts:
    119
    Top 1 unanswered question for unity
    Although using World mode can fix this but it makes the UI development much more difficult and inconvenient
     
  5. dworm

    dworm

    Joined:
    Jun 17, 2015
    Posts:
    74
    you can render on a image and put image on ui, problem solved
     
  6. NeatWolf

    NeatWolf

    Joined:
    Sep 27, 2013
    Posts:
    924
    Sure, but since the draw mode is Overlay and it has to take into account different stretch levels and aspect ratios, positioning particles on screen could became a real nightmare since the rendering has to be done by a fixed camera with arbitrary parameters.