Topic: Strange Behavior with resetCameraRotationExample & ui button

Hi

I'm trying to setup a reset camera rotation button based on the example script. Somehow it won't work properly.

* it is working properly if i call the function from the OnGUI button created in the script

* it doesn't work well when i use a ui button created in the inspector.

Both button call the same function though. it seems to work if if keep moving my cursor but doesn't work if i just click and stay inactive with my mouse.
It is like the map doesn't refresh if i keep my mouse over my UI button after clicking (wtf?)

Here is a GIF showing the problem :

https://gph.is/2RZtDSv

Any idea ? I need help yikes

Post's attachments

Attachment icon resetCameraRotation_Custom.cs 1.69 kb, 75 downloads since 2018-10-17 

Re: Strange Behavior with resetCameraRotationExample & ui button

Hello.

This is a bug in Online Maps.
Thank you for reporting this.
The problem has been fixed.
The new version will be available through the built-in update system in 24 hours.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Strange Behavior with resetCameraRotationExample & ui button

Awesome ! Waiting the fix impatiently wink