In my game i have a NGUI UI widget at the bottom of the screen with some sprites etc.
I what a particle system to appear above that.
I have seen this port about this. But I have trouble getting it to work
http://www.tasharen.com/forum/index.php?topic=776.msg34546#msg34546 I did following test to whether renderq can be used for my task ..
In my game I set UI Root Render Q to 3000 with sorting order 0
Then I add a NGUI sprite to the game
Then I add a sprite to the game and following script to it
Renderer ren;
public UIWidget target;
void Start () {
ren = gameObject.GetComponent<SpriteRenderer>();
ren.material.renderQueue = 4000;
}
void Update () {
if (target == null || target.drawCall == null)
return;
print("sprite " + ren.material.renderQueue);
print("NGUI " + target.drawCall.renderQueue);
}
I can see from the output my sprite has 4000 render q and NGUI sprite has 3000 render q
but still my sprite is behind NGUI sprite ...
Can anyone provide some help ?