So I used a workaround I found that puts particles infront of NGUI. I add a component that does this:
Renderer ren = GetComponent<Renderer>();
if (ren == null)
{
ParticleSystem sys = GetComponent<ParticleSystem>();
if (sys != null) ren = sys.GetComponent<Renderer>();
}
if (ren != null)
{
mMat
= new Material
(ren
.sharedMaterial); mMat.renderQueue = renderQueue;
ren.material = mMat;
}
It was working fine, but I noticed it now no longer works. I am wondering if its related to upgrading to Unity5.
Things I have tried:
In the particle system itself, change the render layer field(new to unity 5 perhaps?)
Make a panel just for the particle and put it at a higher render priority
http://www.tasharen.com/forum/index.php?topic=7216.0The originally mentioned code
Another person's component based solution
int rq = widgetBehindMe.drawCall.renderQueue + 1;
foreach (Material material in m_renderer.materials)
{
material.renderQueue = rq;
}
None of these seem to work for me anymore.
Thoughts?