playMaker

Author Topic: Unity Buttons Staying Highlighted [SOLVED]  (Read 17946 times)

mTruly

  • Junior Playmaker
  • **
  • Posts: 98
Re: Unity Buttons Staying Highlighted [SOLVED]
« Reply #15 on: March 02, 2016, 07:34:48 PM »
Thanks for the guidance on this.  I don't want to be posting proprietary files by accident.

I went to export a package and got a file list with a bunch of checkboxes... and So I guess I should uncheck the entire PlayMaker folder?  Or is there a particular sub-folder?

Likewise I could easily attach or upload the scene file, but would that contain proprietary PlayMaker files?


Repro steps are simple:

1.  Start a new PM project.
2.  Add a Cube (cuz I like cubes)
3.  Add an EMPTY object.
4.  Add an PM FSM to EMPTY.
5.  Add a Unity Button.
6.  Add a 'uGui Button On Click Event' action to FSM on EMPTY.
7.  Point the uGui action to the Unity Button.
8.  Change the colors on the Unity Button to Normal=blue Highlighted=pink Pressed=yellow.
9.  Go to Play mode.
10.  Click the button.

For me (on 2 computers), the blue button highlights to pink when the mouse hovers over it, the user clicks and the button is yellow while mouse is down, then the button turns back to pink on mouse up and stays pink until the user clicks somewhere else on the screen.

Thanks again.
« Last Edit: March 03, 2016, 10:47:15 AM by Alex Chouls »

playsteven

  • Junior Playmaker
  • **
  • Posts: 75
Re: Unity Buttons Staying Highlighted
« Reply #16 on: March 02, 2016, 08:46:49 PM »
[see my next post for possible solution]

Hey,

Couldn't sleep, so I've had a quick look at this. I'm on Unity 5.3.3f1 and Playmaker 1.80 f40.

It will be of no help, but I get exactly the same behaviour as you.

The highlighted colour works until you press the button. After the press the highlighted coloured sticks, even when you are not over the button and only returns to normal when you click somewhere else on the screen.

I installed Playmaker UGui prefab, so that's not the issue.

I wouldn't have noticed this as I only use buttons with images, and they don't highlight when hovered over (mine is a mobile game).

My guess, and as I said, my friend, I am an idiot and there are much smarter people on the forum than me, that it's not a Playmaker issue, it is either a Unity issue or a Unity setting.

I deleted all trace of Playmaker from the project, so I was left with only a canvas and a button, and the same issue is seen  ???

Hope that helps, at least a little :)

Now, to get some sleep!
« Last Edit: March 02, 2016, 08:51:54 PM by playsteven »

playsteven

  • Junior Playmaker
  • **
  • Posts: 75
Re: Unity Buttons Staying Highlighted
« Reply #17 on: March 02, 2016, 08:51:27 PM »
Actually, I thought I'd try one more thing before going to bed  ;D

Try setting the button's Navigation property (below the colours) to None :)

If you leave it at Automatic, the arrow keys navigate through the buttons, but since you've only got one button that's why you're seeing this effect?

Maybe, anyway ...

Now, really, sleep  :-[

mTruly

  • Junior Playmaker
  • **
  • Posts: 98
Re: Unity Buttons Staying Highlighted
« Reply #18 on: March 02, 2016, 09:35:05 PM »
Thank you!  Excellent!  That setting seems to cure the problem at first glance... will test more tommorow.

Sleep well!

Thanks again.

playsteven

  • Junior Playmaker
  • **
  • Posts: 75
Re: Unity Buttons Staying Highlighted
« Reply #19 on: March 03, 2016, 03:06:59 AM »
Superb, hope it stays fixed  8)