Author Topic: OnHover help  (Read 2991 times)

matt1

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 28
    • View Profile
OnHover help
« on: September 05, 2014, 12:48:07 PM »
Hi,

I am wanting to debug a button that i am hovering over, mainly the details that it holds.

for example

void OnHover() {
Debug.Log(This.SpriteName);
}

How would one do this?

Many thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: OnHover help
« Reply #1 on: September 05, 2014, 01:29:32 PM »
  1. void OnHover (bool isOver) { Debug.Log(name + ": " + (isOver ? "Hover over" : "Hover out")); }