MixedRealitySceneContent Class

Definition

Use this script on GameObjects you wish to be aligned in certain ways depending on the application space type. For example, if you want to place an object at the height of the user's head in a room scale application, check alignWithHeadHeight. In a stationary scale application, this is equivalent to placing the object at a height of 0. You can also specify specific locations to place the object based on space type.

This script runs once, on GameObject creation.

public ref class MixedRealitySceneContent : UnityEngine::MonoBehaviour
public class MixedRealitySceneContent : UnityEngine.MonoBehaviour
type MixedRealitySceneContent = class
    inherit MonoBehaviour
Public Class MixedRealitySceneContent
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
MixedRealitySceneContent

Constructors

MixedRealitySceneContent()

Methods

InitializeSceneContent()

Initializes the scene content based on the experience settings Should only be called once.

ReorientContent()

Reorients the scene content based on the camera direction

Applies to