英語で読む 編集

次の方法で共有


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.

C++
public ref class MixedRealitySceneContent : UnityEngine::MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
MixedRealitySceneContent

Constructors

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

製品 バージョン
MRTK2 Unity 2018 2.7.0
MRTK2 Unity 2019 2.7.0, 2.8.0
MRTK2 Unity 2020 2.7.0, 2.8.0