Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 689 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 689 Bytes

UnityRTEvents

test (mouse) events in rendering to RenderTexture

TestMain.unity: 1 Camera, everything works just fine.

TestCamera2.unity: 2 Camera, events missed/broke

SceneCamera: "MainCamera", render cube to RenderTexture; using PhysicsRaycaster. ScreenCamera: only blits RenderTexture onto screen.

Issue

When RenderTexture is different sized with real screen, PhysicsRaycaster/EventSystem failed with incorrect cursor position.