Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Doesn't new PointerEventData(EventSystem.current).hovered work?

$
0
0
I'm trying to get list of all UI objects mouse hovers, but
Code (CSharp):
  1. new PointerEventData(EventSystem.current).hovered
is always empty, even if
Code (CSharp):
  1. EventSystem.current.IsPointerOverGameObject()
determines it hits something.
Code (CSharp):
  1. EventSystem.current.RaycastAll(new PointerEventData(EventSystem.current), list);
is also always empty. What am I doing wrong? Or is it a bug? o_O
Unity 5.3.4f1.

Viewing all articles
Browse latest Browse all 23263

Trending Articles



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