Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: KozTheBoss on April 17, 2013, 09:27:14 AM

Title: GUI Texture detect mouseover? [SOLVED]
Post by: KozTheBoss on April 17, 2013, 09:27:14 AM
Hey guys, im sorry for posting so many help threads, but i keep running into problems that i dont know how to solve!

Right now i am building my UI with buttons for opening inventory, character sheet etc. and i have made icons for it using empty gameobjects which i have put a GUI Texture component on. They are placed as i want them, but how do i let the user interact with it? Mouse event action required colliders, and an actual physical object in the world, so how would one detect input on a GUI Texture? Thanks in advance guys!

-Fred
Title: Re: GUI Texture detect mouseover?
Post by: KozTheBoss on April 17, 2013, 09:37:00 AM
im a dum-dum - i solved it, but i will leave this thread for others who might run into the same problem

Solution: On the same empty GO, disable the GUI TEXTURE component, and instead, add a GUI BUTTON action in playmaker, add your texture and set STYLE to none or just delete "button" in the style parameter in the action. here you can define what action to send on click etc.
Title: Re: GUI Texture detect mouseover? [SOLVED]
Post by: Saputo on April 17, 2013, 04:37:44 PM
what about just putting a mouse over a spot on an image, then it shows what it does, can it be done?
Title: Re: GUI Texture detect mouseover? [SOLVED]
Post by: KozTheBoss on April 18, 2013, 06:57:27 AM
I dont think so mate, but its alright i figured it out :) thanks though!