🎮 Game

PanelRenderTarget lets creators put a Sandbox UI panel onto a world object by rendering the panel into a render target texture and assigning it to a model material. It includes a scene system for culling and focus, input handling that maps mouse rays to panel UVs, a custom root panel fixed at 1280x720, and an example Razor screen with text entry and a dropdown.

🔧 Editor

An editor widget that lets a creator pick a ScreenPanel subclass for a PanelTypeReference property. It scans loaded types for ScreenPanel-derived classes, fills a ComboBox with their titles or names, shows the current value, and writes the chosen type's full name back to the serialized property.

🧪 Unit Test

Unit test project for the PanelRenderTarget library. It boots a Sandbox.TestAppSystem for the test run, then runs a test that creates a Scene, pushes it, spawns a GameObject, and asserts the scene object count is one.

🐞 Possible Bugs

TargetScreen.cs
TryRayTriangleIntersection runs in local space with a normalized local direction, so the returned distance is in local units, but the code compares it against TraceDistance (a world-space value), so hit range is wrong whenever the model's transform has a non-unit scale.