Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Purpose of PointerEventData in BaseRaycaster.Raycast()

Discussion in 'Documentation' started by timoffex, Mar 7, 2019.

  1. timoffex

    timoffex

    Joined:
    Mar 5, 2017
    Posts:
    1
    I am unable to find any documentation (or discussion) explaining why BaseRaycaster.Raycast() takes a PointerEventData instead of, say, just a Vector2. What concerns me is that PointerEventData is a mutable class, meaning that a BaseRaycaster could hypothetically call Use() or could even change the position property.

    Are implementations of BaseRaycaster supposed to use any of the other information in PointerEventData besides position?
     
unityunity