playMaker

Author Topic: GUI Texture detect mouseover? [SOLVED]  (Read 2450 times)

KozTheBoss

  • Full Member
  • ***
  • Posts: 150
  • You dont fail unless you give up trying to succeed
    • View Profile
    • Pixel Life - portfolio
GUI Texture detect mouseover? [SOLVED]
« on: April 17, 2013, 06: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
« Last Edit: April 17, 2013, 06:37:17 AM by KozTheBoss »
Remember, you don't fail unless you give up trying to succeed!

KozTheBoss

  • Full Member
  • ***
  • Posts: 150
  • You dont fail unless you give up trying to succeed
    • View Profile
    • Pixel Life - portfolio
Re: GUI Texture detect mouseover?
« Reply #1 on: April 17, 2013, 06: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.
Remember, you don't fail unless you give up trying to succeed!

Saputo

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Re: GUI Texture detect mouseover? [SOLVED]
« Reply #2 on: April 17, 2013, 01: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?

KozTheBoss

  • Full Member
  • ***
  • Posts: 150
  • You dont fail unless you give up trying to succeed
    • View Profile
    • Pixel Life - portfolio
Re: GUI Texture detect mouseover? [SOLVED]
« Reply #3 on: April 18, 2013, 03:57:27 AM »
I dont think so mate, but its alright i figured it out :) thanks though!
Remember, you don't fail unless you give up trying to succeed!