Class SpectatorView
Class that facilitates the Spectator View experience
Namespace: Microsoft.MixedReality.SpectatorView
Assembly: cs.temp.dll.dll
Syntax
public class SpectatorView : MonoBehaviour
Fields
Role
Role of the device in the spectator view experience.
Declaration
public Role Role
Field Value
Type | Description |
---|---|
Role |
SettingsPrefabName
Declaration
public const string SettingsPrefabName = "SpectatorViewSettings"
Field Value
Type | Description |
---|---|
String |
spectatorDebugVisualPrefab
Debug visual prefab created by the spectator.
Declaration
public GameObject spectatorDebugVisualPrefab
Field Value
Type | Description |
---|---|
Game |
spectatorDebugVisualScale
Scaling applied to spectator debug visuals.
Declaration
public float spectatorDebugVisualScale
Field Value
Type | Description |
---|---|
Single |
userDebugVisualPrefab
Declaration
public GameObject userDebugVisualPrefab
Field Value
Type | Description |
---|---|
Game |
userDebugVisualScale
Scaling applied to user debug visuals.
Declaration
public float userDebugVisualScale
Field Value
Type | Description |
---|---|
Single |
Methods
TryResetLocalizationAsync()
Call to reset spatial alignment for the current participant
Declaration
public Task<bool> TryResetLocalizationAsync()
Returns
Type | Description |
---|---|
Task<Boolean> | Returns true if resetting localization succeeds, otherwise False. |