- Home /
Is there anyway to create a outer glow on an object in Unity Indie via script?
Hello
I have been looking for a way to create an outer glow via script in Unity Indie. What I am trying to do is make a menu and when a certain option is selected it glows. I have already made the made the menu. Say that in my menu I have 2 cubes. I was wondering if there was a way to make it that when the my variable = 1 the 1st cube has an outer glow and the 2nd cube doesnt. But when the variable = 2 then the first cube doesnt have an outer glow but the second cube does. However I have more than 2 cubes in my menu. I have seen many questions and discussions on Unity claiming that this cannot be done in Unity free but many others have said that it can be done in Unity Free. However of the questions that claim it can be done I cannot apply their answers to my game.
Thank you in advance.
Answer by Anxo · Jan 08, 2014 at 09:07 PM
Hi Dok
If you know the size of the "cube" you can just creat a glow effect type sprite in Photoshop(or program of the sort) and SetActive(true) when you want it on and SetActive(false) when you want it off.
A glow effect can just look like a faded blob on a sprite that you can put on a plane and place it at the selected objects position and always have it face the camera.