Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GetPointerData(kMouseRightId, out PointerEventData rightData, true);
- rightData.Reset();
- CopyFromTo(leftData, rightData);
- RaycastResult raycast2 = FindFirstRaycast(m_RaycastResultCache, PointerEventData.InputButton.Right); //new call, new param
- rightData.pointerCurrentRaycast = raycast2; //overwrite the data from the left button
- rightData.button = PointerEventData.InputButton.Right;
Advertisement
Add Comment
Please, Sign In to add comment