I am developing a game in Unity3d and I have some scripts which uses OnGUI() method and they are attached to my GameMenu object. I need to play a particle system on the scene while the GUI scripts are active. When I do that I cant see the particle system because OnGUI method is disabling my MainCamera and is on top of everything on the scene.
So is there a way to play particle system in front of OnGUI() method ?
This is how my scene looks like:
On the red marked area, I want my particle system being played to underline the selection. But the whole menu is designed with OnGUI() method and my particle system is playing behind where I cant see.
Avoid using OnGui it's pretty deprecated. Unity supports this feature with its new GUI system. However, using OnGUI it is not possible (without using 3rd party tools).