Many ways to bake a cake…
when player enters portal can we disable mouse clicks till transions is done?
Thanks
Many ways to bake a cake…
when player enters portal can we disable mouse clicks till transions is done?
Thanks
Yes,
player.GetComponent<PlayerController>().enabled=false;
Just remember that after the scene loads, the player won’t be the same player, so you have to disable/enable after we get the player again.
Thanks
I was hoping for a Unity built in event like OnMouseOver… lol
maybe unity could be so kind as to add OnWantToDisableMouse event… LOLOLOL
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.