Quantcast
Channel: Questions in topic: "gui"
Viewing all articles
Browse latest Browse all 125

How do disable uGUI/EventSystem selection feature?

$
0
0
If my players only use pointer based input devices (mouse or touch) I don't need the Selectables feature of Unity GUI. Is there a way to disable it? I currently just have an Update method where, if there is a selected object, I will remove it. It does the job, but is not very nice. void Update() { if (EventSystem.current?.currentSelectedGameObject != null) EventSystem.current.SetSelectedGameObject(null); }

Viewing all articles
Browse latest Browse all 125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>