日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class RuntimeSceneUtils

    Inheritance
    Object
    RuntimeSceneUtils
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities
    Assembly: cs.temp.dll.dll
    Syntax
    public static class RuntimeSceneUtils

    Methods

    FindScene(String, out Scene, out Int32)

    Finds a scene in our build settings by name.

    Declaration
    public static bool FindScene(string sceneName, out Scene scene, out int sceneIndex)
    Parameters
    Type Name Description
    String sceneName
    Scene scene
    Int32 sceneIndex
    Returns
    Type Description
    Boolean

    GetRootGameObjectsInLoadedScenes()

    Returns all root GameObjects in all loaded scenes.

    Declaration
    public static IEnumerable<GameObject> GetRootGameObjectsInLoadedScenes()
    Returns
    Type Description
    IEnumerable<GameObject>

    GetSceneNameFromScenePath(String)

    Declaration
    public static string GetSceneNameFromScenePath(string scenePath)
    Parameters
    Type Name Description
    String scenePath
    Returns
    Type Description
    String

    SetActiveScene(Scene)

    Sets the active scene to the supplied scene. Returns true if successful.

    Declaration
    public static bool SetActiveScene(Scene scene)
    Parameters
    Type Name Description
    Scene scene
    Returns
    Type Description
    Boolean
    Back to top Generated by DocFX