Gui Texture + Glow Effect

Hello everybody!

I have a GUITexture in my scene and I want to have an Glow Effect to this GUI, I used the Glow in (Components > Image Effects > Glow), but this was insert into the camera.

How can I do the glow effect in my GUI?

There is one way that I can think of, although it’s probably not going to give the desired effect.

  • First Create a layer for the GUI (unless you already did), and set the GUITexture layer to the GUI layer.
  • Create a second camera in your scene, set said camera’s ‘Clear Flags’ option to ‘Depth Only’
  • Set the camera’s Culling mask to the GUI layer, nothing else.
  • Set its Depth to 1 (or something higher than your main camera), now apply the image effect to the camera.
  • Finally, disable the GUI layer in the main camera’s culling mask.

In theory this should make your GUITexture glow… But, I think it would make everything else in the scene glow. I’m gonna have to look into this some more now.

I tried but didn’t work.

Everything get the glow effect. Another thing I can make the glow effect only in some gameobjects when the function OnMouseEnter is called?