A game about forced loneliness, made by TACStudios
at master 22 lines 1.2 kB view raw view rendered
1# Panel Raycaster 2 3A derived [Raycaster](Raycasters.md) to raycast against UI Toolkit panel instances at runtime. 4 5During the Start method of the EventSystem, a PanelRaycaster is automatically added to the scene for each 6active UI Document in the scene. To disable this behavior, call 7EventSystem.SetUITookitEventSystemOverride before the Start method 8executes. 9 10You can use the Sort Order of the Panel Settings asset referenced by each document to configure 11the priority of the raycast between multiple documents. You can also use the PanelRaycaster in combination 12with a [GraphicRaycaster](script-GraphicRaycaster.md). In that case, the Sort Order of documents is compared to 13the Sort Order of Canvases to determine overall priority. 14 15For additional information about using input and event systems with UI Toolkit, 16refer to [FAQ for event and input system](https://docs.unity3d.com/Manual/UIE-faq-event-and-input-system.html). 17 18## Properties 19 20|**Property:** |**Function:** | 21|:---|:---| 22|`panel`| The panel that this component relates to. If the panel is null, this component has no effect. It will automatically be set to `null` automatically if the panel is disposed of from an external source. |