Search Unity

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?