hi can anybody share some idea on how can i do whats on my mind.
i know how mouse over works but i dont know how can i do this.
i want the OBJECT to GLOW on MOUSE OVER.
i made a GLOW EFFECT on photoshop. how will i able to put it on the object.
below is the screen shot i am planning to do.
i want this to happen on mouse over.
and my light/glow script seems not working.
function Start () {
// Make a game object
var lightGameObject : GameObject = new GameObject("The Light");
// Add the light component
lightGameObject.AddComponent(Light);
// Set color and position
lightGameObject.light.color = Color.red;
// Set the position (or any transform property) after
// adding the light component.
lightGameObject.transform.position = Vector3(470.6551, 88.20313, 632.5042);//position of the object
}
Well, I’m still kinda new to scripting, so I don’t quite know how to solve your exact problem, but I do have a script of my own that I used to make objects brighter on mouse over. I know it’s not the same as making objects glow, but perhaps you can use it as a stepping stone to figure out how to accomplish what you want.
// Changes the brightness of the material while the mouse is over the mesh
function OnMouseOver ()
{
renderer.material.color = Color(1.5, 1.5, 1.5);
}
function OnMouseExit ()
{
renderer.material.color = Color(1, 1, 1);
}