Draco18s

inputs

Nov 6th, 2022
1,374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1.             GetPointerData(kMouseRightId, out PointerEventData rightData, true);
  2.             rightData.Reset();
  3.  
  4.             CopyFromTo(leftData, rightData);
  5. RaycastResult raycast2 = FindFirstRaycast(m_RaycastResultCache, PointerEventData.InputButton.Right); //new call, new param
  6.             rightData.pointerCurrentRaycast = raycast2; //overwrite the data from the left button
  7.             rightData.button = PointerEventData.InputButton.Right;
Advertisement
Add Comment
Please, Sign In to add comment