docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SimulatedObjectsManager

    Module responsible for copying simulatable objects to the simulation scene, mapping between these copies and their originals, and checking for changes to the original objects

    Inheritance
    object
    Object
    ScriptableObject
    ScriptableSettingsBase
    ScriptableSettingsBase<SimulatedObjectsManager>
    EditorScriptableSettings<SimulatedObjectsManager>
    SimulatedObjectsManager
    Implements
    IModuleDependency<QuerySimulationModule>
    IModuleDependency<MARSEnvironmentManager>
    IModuleDependency<SimulationSceneModule>
    IModuleDependency<SceneWatchdogModule>
    IModule
    Inherited Members
    EditorScriptableSettings<SimulatedObjectsManager>.instance
    ScriptableSettingsBase<SimulatedObjectsManager>.k_HasCustomPath
    ScriptableSettingsBase<SimulatedObjectsManager>.s_Instance
    ScriptableSettingsBase<SimulatedObjectsManager>.Save(string)
    ScriptableSettingsBase<SimulatedObjectsManager>.GetFilePath()
    ScriptableSettingsBase.k_PathExceptionMessage
    ScriptableSettingsBase.GetInstanceByType(Type)
    ScriptableSettingsBase.OnLoaded()
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.InstantiateAsync<T>(T)
    Object.InstantiateAsync<T>(T, Transform)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int)
    Object.InstantiateAsync<T>(T, int, Transform)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, CancellationToken)
    Object.InstantiateAsync<T>(T, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, InstantiateParameters, CancellationToken)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Scene)
    Object.Instantiate<T>(T, InstantiateParameters)
    Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEditor.MARS.Simulation
    Assembly: Unity.MARS.Editor.dll
    Syntax
    [ScriptableSettingsPath("Assets/MARS/UserSettings")]
    [MovedFrom("Unity.MARS")]
    public class SimulatedObjectsManager : EditorScriptableSettings<SimulatedObjectsManager>, IModuleDependency<QuerySimulationModule>, IModuleDependency<MARSEnvironmentManager>, IModuleDependency<SimulationSceneModule>, IModuleDependency<SceneWatchdogModule>, IModule

    Fields

    SimulatedObjectHideFlags

    Hide flags for game objects in the simulated content scene

    Declaration
    public const HideFlags SimulatedObjectHideFlags = DontSave
    Field Value
    Type Description
    HideFlags

    Properties

    SimulatableBehavioursBlockingResyncCount

    Number of behaviours that are currently blocking auto resync

    Declaration
    public int SimulatableBehavioursBlockingResyncCount { get; }
    Property Value
    Type Description
    int

    SimulatedCamera

    The copied MARS camera reference in the simulated content scene

    Declaration
    public Camera SimulatedCamera { get; }
    Property Value
    Type Description
    Camera

    SimulatedContentRoot

    The root object that simulated content copies are added to

    Declaration
    public GameObject SimulatedContentRoot { get; }
    Property Value
    Type Description
    GameObject

    SimulationSyncedWithScene

    Whether the simulated content reflects the state of the active scene

    Declaration
    public bool SimulationSyncedWithScene { get; }
    Property Value
    Type Description
    bool

    Methods

    AddSpawnedObjectToSimulation(GameObject)

    Adds the given Game Object to the current simulation and starts running its ISimulatable behaviours

    Declaration
    public void AddSpawnedObjectToSimulation(GameObject gameObject)
    Parameters
    Type Name Description
    GameObject gameObject

    The Game Object to add to simulation

    DirtySimulatableScene()

    Sets flags that the active scene has been modified and simulation should restart. This guarantees that the scene contents will be copied to the simulation scene for the next simulation.

    Declaration
    public void DirtySimulatableScene()

    GetCopiedSimulatable(ISimulatable)

    Returns the simulation scene copy of an ISimulatable, if there is one

    Declaration
    public ISimulatable GetCopiedSimulatable(ISimulatable original)
    Parameters
    Type Name Description
    ISimulatable original

    The original version of a copied ISimulatable

    Returns
    Type Description
    ISimulatable

    GetCopiedTransform(Transform)

    Returns the simulation scene copy of a Transform, if there is one

    Declaration
    public Transform GetCopiedTransform(Transform original)
    Parameters
    Type Name Description
    Transform original

    The original version of a copied Transform

    Returns
    Type Description
    Transform

    GetOriginalObject(Object)

    Returns the original scene copy of a simulation scene Object, if there is one being managed

    Declaration
    public Object GetOriginalObject(Object copy)
    Parameters
    Type Name Description
    Object copy

    The copied version of an object

    Returns
    Type Description
    Object

    GetOriginalSimulatable(ISimulatable)

    Returns the original version of an ISimulatable copied to the simulation scene, if there is one

    Declaration
    public ISimulatable GetOriginalSimulatable(ISimulatable copy)
    Parameters
    Type Name Description
    ISimulatable copy

    The ISimulatable in the simulation scene

    Returns
    Type Description
    ISimulatable

    The original version of the copied object

    GetOriginalTransform(Transform)

    Returns the original scene copy of a simulation scene Transform, if there is one

    Declaration
    public Transform GetOriginalTransform(Transform copy)
    Parameters
    Type Name Description
    Transform copy

    The copied version of a Transform

    Returns
    Type Description
    Transform

    IsSimulatedObject(GameObject)

    Checks whether an object is a simulated object.

    Declaration
    public static bool IsSimulatedObject(GameObject obj)
    Parameters
    Type Name Description
    GameObject obj

    The gameobject to check.

    Returns
    Type Description
    bool

    True if the object is a simulated object

    Implements

    Unity.XRTools.ModuleLoader.IModuleDependency<T>
    Unity.XRTools.ModuleLoader.IModuleDependency<T>
    Unity.XRTools.ModuleLoader.IModuleDependency<T>
    Unity.XRTools.ModuleLoader.IModuleDependency<T>
    Unity.XRTools.ModuleLoader.IModule
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)