Class PanelRaycaster
A derived BaseRaycaster to raycast against UI Toolkit panel instances at runtime.
Inheritance
PanelRaycaster
Inherited Members
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
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. |