mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0releases/2.3.0releases/2.4.0releases/2.5.0releases/2.5.1releases/2.5.2releases/2.5.3

We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class SceneInfoUtils

    Class responsible for updating scene info structs to reflect changes made to scene assets. Extends AssetPostprocessor so it can respond to asset changes.

    Inheritance
    Object
    SceneInfoUtils
    Implements
    IProcessSceneWithReport
    Namespace: Microsoft.MixedReality.Toolkit.Editor
    Assembly: cs.temp.dll.dll
    Syntax
    public class SceneInfoUtils : AssetPostprocessor, IProcessSceneWithReport

    Properties

    CachedScenes

    Cached scenes used by SceneInfoDrawer to keep property drawer performant.

    Declaration
    public static EditorBuildSettingsScene[] CachedScenes { get; }
    Property Value
    Type Description
    EditorBuildSettingsScene[]

    callbackOrder

    Declaration
    public int callbackOrder { get; }
    Property Value
    Type Description
    Int32

    Methods

    FindScene(SerializedProperty, SerializedProperty, ref UnityEngine.Object)

    Finds a missing scene asset reference for a SceneInfo struct.

    Declaration
    public static bool FindScene(SerializedProperty nameProperty, SerializedProperty pathProperty, ref UnityEngine.Object asset)
    Parameters
    Type Name Description
    SerializedProperty nameProperty
    SerializedProperty pathProperty
    UnityEngine.Object asset
    Returns
    Type Description
    Boolean

    True if scene was found.

    GetSceneInfoRelativeProperties(SerializedProperty, out SerializedProperty, out SerializedProperty, out SerializedProperty, out SerializedProperty, out SerializedProperty, out SerializedProperty)

    Finds all relative properties of a SceneInfo struct.

    Declaration
    public static void GetSceneInfoRelativeProperties(SerializedProperty property, out SerializedProperty assetProperty, out SerializedProperty nameProperty, out SerializedProperty pathProperty, out SerializedProperty buildIndexProperty, out SerializedProperty includedProperty, out SerializedProperty tagProperty)
    Parameters
    Type Name Description
    SerializedProperty property
    SerializedProperty assetProperty
    SerializedProperty nameProperty
    SerializedProperty pathProperty
    SerializedProperty buildIndexProperty
    SerializedProperty includedProperty
    SerializedProperty tagProperty

    OnPostProcessScene()

    Searches for all components in a scene and refreshes any SceneInfo fields found.

    Declaration
    public static void OnPostProcessScene()

    OnProcessScene(Scene, BuildReport)

    Implements IProcessSceneWithReport.OnProcessScene

    Declaration
    public void OnProcessScene(Scene scene, BuildReport report)
    Parameters
    Type Name Description
    Scene scene
    BuildReport report

    RefreshCachedScenes()

    Call this when you make a change to the build settings and need those changes to be reflected immediately.

    Declaration
    public static void RefreshCachedScenes()

    RefreshSceneInfo(UnityEngine.Object, SerializedProperty, SerializedProperty, SerializedProperty, SerializedProperty, SerializedProperty)

    Updates all the serialized properties for a SceneInfo struct.

    Declaration
    public static bool RefreshSceneInfo(UnityEngine.Object asset, SerializedProperty nameProperty, SerializedProperty pathProperty, SerializedProperty buildIndexProperty, SerializedProperty includedProperty, SerializedProperty tagProperty)
    Parameters
    Type Name Description
    UnityEngine.Object asset
    SerializedProperty nameProperty
    SerializedProperty pathProperty
    SerializedProperty buildIndexProperty
    SerializedProperty includedProperty
    SerializedProperty tagProperty
    Returns
    Type Description
    Boolean

    True if a property has changed.

    Implements

    IProcessSceneWithReport
    In This Article
    • Properties
      • CachedScenes
      • callbackOrder
    • Methods
      • FindScene(SerializedProperty, SerializedProperty, ref UnityEngine.Object)
      • GetSceneInfoRelativeProperties(SerializedProperty, out SerializedProperty, out SerializedProperty, out SerializedProperty, out SerializedProperty, out SerializedProperty, out SerializedProperty)
      • OnPostProcessScene()
      • OnProcessScene(Scene, BuildReport)
      • RefreshCachedScenes()
      • RefreshSceneInfo(UnityEngine.Object, SerializedProperty, SerializedProperty, SerializedProperty, SerializedProperty, SerializedProperty)
    • Implements
    Back to top Generated by DocFX