This is quite worrying and I am pretty sure I wasn't doing anything wrong as both cases are so simple:
1.
I was working on a uGUI and I made the FSM template work properly on one button and then copied over the
- playmaker uGUI component proxy (was set to target Use Owner)
- and the template FSM to other 3 similar buttons
and tested it and found the bug that when I pressed one of the buttons another one was also pressed at the same time. Restarted several times with same result.
I was like
this should just work, what could be wrong? The buttons weren't overlapping of course.
I changed the target in the component proxy from Use Owner to the specific game object and it worked well that way.
Restarted Unity and set back the component proxys to target the Use Owner and it all worked perfectly and keeps on working since then.
I am pretty sure it just needed a Unity restart.
Why is this?
How can I know when I need to restart Unity to get such things working properly so I don't waste time debugging stuff that should just work.
2.
Just now I found that the
Convert Formatted String To Float and the Convert String To Float
just does not work.
I looked at the state when it was running and the string value was there, but all the float results were 0.
I tried many different number styles but all resulted in 0 in various float variables and even the simple Convert String To Float was not converting 56.00 to nothing, the resulting float was 0.
Restated Unity and all works, perfectly.
Why is this?
How can I know when I need to restart Unity to get such things working properly so I don't waste time debugging stuff that should just work.
Has anybody else experienced such behavior?
Br,
szomaza