Quantcast
Viewing all articles
Browse latest Browse all 14

Answer by Jonesy19

I finally debugged the issue and have come up with a workaround (though, I'm not really sure what the exact cause is. I think it might might actually be a bug in Unity. Anyways, it deals with the SpriteRenderer and the order in which it is applied to the gameobject (relative to the Particle System)...In my case, I was trying to apply a particle system to a gameobject that already had a SpriteRenderer component attached to it. For some reason, this eliminates any possibility of putting that Particle System in any sorting layer other than the one that is furthest back. The workaround I found was to remove the SpriteRenderer, and then add it (or just create a whole new gameobject and add the Particle System first). After doing this, I was able to change the sorting layer of the particle system. Another workaround would be to create a separate particle system gameobject and attach it (as a child) to the main gameobject.

Viewing all articles
Browse latest Browse all 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>