Class PanelRaycaster
A derived BaseRaycaster to raycast against UI Toolkit panel instances at runtime.
Inheritance
PanelRaycaster
Inherited Members
Component.GetComponentIndex()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Scene)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.UIElements
Assembly: UnityEngine.UI.dll
Syntax
[AddComponentMenu("UI Toolkit/Panel Raycaster (UI Toolkit)")]
public class PanelRaycaster : BaseRaycaster
Properties
eventCamera
The camera that will generate rays for this raycaster.
Declaration
public override Camera eventCamera { get; }
Property Value
Type | Description |
---|---|
Camera |
Overrides
panel
The panel that this component relates to. If panel is null, this component will have no effect. Will be set to null automatically if panel is Disposed from an external source.
Declaration
public IPanel panel { get; set; }
Property Value
Type | Description |
---|---|
IPanel |
renderOrderPriority
Priority of the raycaster based upon render order.
Declaration
public override int renderOrderPriority { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
sortOrderPriority
Priority of the raycaster based upon sort order.
Declaration
public override int sortOrderPriority { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
Methods
Raycast(PointerEventData, List<RaycastResult>)
Raycast against the scene.
Declaration
public override void Raycast(PointerEventData eventData, List<RaycastResult> resultAppendList)
Parameters
Type | Name | Description |
---|---|---|
PointerEventData | eventData | Current event data. |
List<RaycastResult> | resultAppendList | List of hit Objects. |