Answers for "unity make sure pressing button doesnt affect underlaying plane"

0

unity make sure pressing button doesnt affect underlaying plane

Check EventSystem.current.IsPointerOverGameObject(). If it's true, it means that the mouse pointer is over a GUI element. So check !EventSystem.current.IsPointerOverGameObject()
Posted by: Guest on May-26-2021

Code answers related to "unity make sure pressing button doesnt affect underlaying plane"

Browse Popular Code Answers by Language