Class WorldSpaceUIDocument
A MonoBehaviour which allows to display a UIDocument in World-Space.
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
Namespace: UnityEngine.Dt.App.Core
Syntax
[RequireComponent(typeof(UIDocument))]
public class WorldSpaceUIDocument : MonoBehaviour
Fields
customRayFunc
A custom method to compute a Ray used as reference to raycast against World-Space UI Panels.
Declaration
public Func<Ray> customRayFunc
Field Value
Type | Description |
---|---|
Func<Ray> |
layerMask
The LayerMask used with raycasts against World-Space UI Panels.
Declaration
[Tooltip("The LayerMask used with raycasts against World-Space UI Panels.")]
public LayerMask layerMask
Field Value
Type | Description |
---|---|
LayerMask |
maxDistance
The maximum distance used with raycasts against World-Space UI Panels.
Declaration
[Tooltip("The maximum distance used with raycasts against World-Space UI Panels.")]
public float maxDistance
Field Value
Type | Description |
---|---|
Single |
targetCamera
The camera used to raycast against World-Space UI Panels.
Declaration
[Tooltip("The camera used to raycast against WorldSpace UI Panels.\nYou can also use WorldSpaceUIDocument.customRayFunc property to use a custom Ray computation method.")]
public Camera targetCamera
Field Value
Type | Description |
---|---|
Camera |