- Home /
guiTexture button hit area
Hi Guys,
my GuiTexture was working fine as a button, but all of a sudden only half of the images works as a rollover and I little bit off the right hand side? The player is in fullscreen so it can't be that?
Anyone know what's going on?
Cheers
Steve
As iwaldrop commented, more information (including code where possible) will be helpful! =)
it would be nice if you could provide the code you used...
You might write a raycast that outputs the name/tag for any hit just to make sure there are no blocking collider of any sort.
function On$$anonymous$$ouseEnter()
{
gameObject.guiTexture.texture = hover;
}
No real rocket science here, I have the a similar line for On$$anonymous$$ouseExit.
Your answer
Follow this Question
Related Questions
JavaScript: _player.cursor(280) 1 Answer
Changing cursor over multiple objects 0 Answers
Help in GUI issue - Can't lose focus of a dropdown list when mouse clicks somewhere else? 0 Answers
How do I make my mouse go back to default after clicking empty space? 0 Answers
unity2D: make object face mouse 2 Answers