- Home /
on mouse exit function not working
i have attached the code below to various gui textures in my heirarchy and i have also populated the variables with assets in my project. when i play the game, the OnMouseOver function gets called and the 2d texture on my screen changes but the OnMouseExit function doesnt seem to run...HELP PLIZ
var buttonExit : Texture2D; var buttonOver : Texture2D;
function OnMouseOver(){
guiTexture.texture =buttonOver;
}
function onMouseExit(){
guiTexture.texture= buttonExit ;
}
Answer by sfc.itzhak · Oct 26, 2012 at 07:09 AM
Big O
function **O**nMouseExit(){
guiTexture.texture= buttonExit ;
}
Your answer
Follow this Question
Related Questions
Rotating a Sphere with the mouse? 1 Answer
C# Gameobject Rigidbody Mouse Collision 1 Answer
Get GameObject That Was Last Clicked? 2 Answers
A node in a childnode? 1 Answer
C# Emit Particle Upon Left Mouse Click 2 Answers