Class WorldSpaceUIDocument
A MonoBehaviour which allows to display a UIDocument in World-Space.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.AppUI.Core
Assembly: Unity.AppUI.dll
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 |
---|---|
float |
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 |
Remarks
You can also use customRayFunc property to use a custom Ray computation method.