X-Frame FPS Accelerator · Core Concepts
X-Frame automatically manages ray casting for Canvas elements set to Screen Space Overlay or World Space.
If you experience issues with Camera.ScreenPointToRay, use the X-Frame equivalent instead. It accounts for the active downsampling factor:
Ray ray = XFrameManager.instance.ScreenPointToRay(camera, screenPosition);
If you create Canvas objects at runtime, call UpdateUICanvases() to integrate them with X-Frame's ray casting system:
XFrameManager.instance.UpdateUICanvases();
See the Scripting Support page for the full API reference, including additional raycast and UI interaction helpers.
Help us improve this documentation page.