This should be easy … but apparently, it’s surprisingly hard: I need to know the position of the pointer(s) in a specific RectTransform. This is for a UI that works both in flatscreen and VR, so I can’t use the mouse position.
Is there any way to do this without major hacks?
Basically, if I could simply access
public class StandaloneInputModule : PointerInputModule {
private PointerEventData m_InputPointerEvent;
}
that would be enough.
Or, if there was an IDragHandler that doesn’t require dragging (i.e. pressing the mouse button) …