Quantcast
Channel: Answers for "How to detect if mouse is hovering any GUI Element(Unity 4.6 GUI)"
Browsing latest articles
Browse All 4 View Live

Answer by SnStarr

Try using the new interface public class MyScript : MonoBehaviour, IPointerEnterHandler then add a new function public void OnPointerEnter(PointerEventData dataName) { }

View Article



Answer by mk26

// UI elements will receive this hit/hover if (EventSystem.current.IsPointerOverGameObject()) { // UI elements getting the hit/hover }

View Article
Browsing latest articles
Browse All 4 View Live


Latest Images

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