Class SimulatedBoundingBox
Marks an object in a simulation environment as a source for a Bounding Box. This component is required by the SimulationBoundingBoxSubsystem on all GameObjects that represent bounding boxes in an environment.
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.XR.Simulation
Assembly: Unity.XR.Simulation.dll
Syntax
[DisallowMultipleComponent]
public class SimulatedBoundingBox : MonoBehaviour
Properties
center
The center of the box, measured in the object's local space.
Declaration
public Vector3 center { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
classifications
The classifications of the bounding box.
Declaration
public BoundingBoxClassifications classifications { get; set; }
Property Value
Type | Description |
---|---|
BoundingBoxClassifications |
size
The size of the box, measured in the object's local space.
Declaration
public Vector3 size { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
trackableId
The TrackableId
for the bounding box.
Declaration
public TrackableId trackableId { get; }
Property Value
Type | Description |
---|---|
TrackableId |
Methods
GetWorldSpaceCenterPose()
Gets the world-space pose of the bounding box center.
Declaration
public Pose GetWorldSpaceCenterPose()
Returns
Type | Description |
---|---|
Pose | The pose. |
GetWorldSpaceSize()
Gets the world-space size of the bounding box.
Declaration
public Vector3 GetWorldSpaceSize()
Returns
Type | Description |
---|---|
Vector3 | The size. |