Class ARSubsystemUtil
A collection of utilities for working with the AR-related Subsystems.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.ARFoundation
Syntax
public static class ARSubsystemUtil
Remarks
You would not normally use this directly. The ARSubsystemManager manages the individual subsystems.
Methods
CreateCameraSubsystem(String)
Creates a XRCameraSubsystem.
Declaration
public static XRCameraSubsystem CreateCameraSubsystem(string id = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | (Optional) The name of the subsystem to create. |
Returns
| Type | Description |
|---|---|
| XRCameraSubsystem | A |
CreateDepthSubsystem(String)
Creates a XRDepthSubsystem.
Declaration
public static XRDepthSubsystem CreateDepthSubsystem(string id = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | (Optional) The name of the subsystem to create. |
Returns
| Type | Description |
|---|---|
| XRDepthSubsystem | A |
CreateInputSubsystem(String)
Creates a XRInputSubsystem.
Declaration
public static XRInputSubsystem CreateInputSubsystem(string id = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | (Optional) The name of the subsystem to create. |
Returns
| Type | Description |
|---|---|
| XRInputSubsystem | A |
CreatePlaneSubsystem(String)
Creates a XRPlaneSubsystem.
Declaration
public static XRPlaneSubsystem CreatePlaneSubsystem(string id = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | (Optional) The name of the subsystem to create. |
Returns
| Type | Description |
|---|---|
| XRPlaneSubsystem | A |
CreateRaycastSubsystem(String)
Creates a XRRaycastSubsystem.
Declaration
public static XRRaycastSubsystem CreateRaycastSubsystem(string id = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | (Optional) The name of the subsystem to create. |
Returns
| Type | Description |
|---|---|
| XRRaycastSubsystem | A |
CreateReferencePointSubsystem(String)
Creates a XRReferencePointSubsystem.
Declaration
public static XRReferencePointSubsystem CreateReferencePointSubsystem(string id = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | (Optional) The name of the subsystem to create. |
Returns
| Type | Description |
|---|---|
| XRReferencePointSubsystem | A |
CreateSessionSubsystem(String)
Creates a XRSessionSubsystem.
Declaration
public static XRSessionSubsystem CreateSessionSubsystem(string id = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | (Optional) The name of the subsystem to create. |
Returns
| Type | Description |
|---|---|
| XRSessionSubsystem | A |