docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MiniSimulationView

    Simulation view that can be drawn to a window and supports basic camera controls and composite rendering

    Inheritance
    object
    Object
    ScriptableObject
    MiniSimulationView
    Implements
    ISimulationView
    Inherited Members
    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
    [Serializable]
    [MovedFrom("Unity.MARS")]
    public class MiniSimulationView : ScriptableObject, ISimulationView

    Properties

    BackgroundColor

    Color to use as a background fill when drawing the composite

    Declaration
    public Color BackgroundColor { get; }
    Property Value
    Type Description
    Color

    BackgroundSceneActive

    Is the composited scene the active scene

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

    CameraTargetDescriptor

    Render texture descriptor for the TargetCamera

    Declaration
    public RenderTextureDescriptor CameraTargetDescriptor { get; }
    Property Value
    Type Description
    RenderTextureDescriptor

    CompositeCamera

    The composite camera being used in the view

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

    ContextViewType

    Context view type of the view

    Declaration
    [Obsolete]
    public ContextViewType ContextViewType { get; }
    Property Value
    Type Description
    ContextViewType

    DesaturateComposited

    Desaturate the layer being composited to the view

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

    SceneType

    Type of view mode that is being used

    Declaration
    public ViewSceneType SceneType { get; set; }
    Property Value
    Type Description
    ViewSceneType

    ShowImageEffects

    Are image effects active and should be rendered

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

    TargetCamera

    Camera associated with the view. This is the one providing the render for a view.

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

    UseXRay

    Enable the x-ray rendering for the view

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

    camera

    Camera used to render the view.

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

    isRotationLocked

    Is rotation locked

    Declaration
    public bool isRotationLocked { get; set; }
    Property Value
    Type Description
    bool

    orthographic

    Is the scene view ortho.

    Declaration
    public bool orthographic { get; set; }
    Property Value
    Type Description
    bool

    pivot

    Center point of the view. Modify it to move the view immediately, or use LookAt to animate it nicely.

    Declaration
    public Vector3 pivot { get; set; }
    Property Value
    Type Description
    Vector3

    rotation

    The direction of the scene view. Modify it to rotate the view immediately, or use LookAt to animate it nicely.

    Declaration
    public Quaternion rotation { get; set; }
    Property Value
    Type Description
    Quaternion

    size

    The size of the view measured diagonally.

    Declaration
    public float size { get; set; }
    Property Value
    Type Description
    float

    Methods

    DrawMarsRenderView(Rect)

    Draw as a dynamic view in the given rect.

    Declaration
    public void DrawMarsRenderView(Rect rect)
    Parameters
    Type Name Description
    Rect rect

    Rect to draw the View.

    InitMiniSimulationView(float, float)

    Initialize the mini simulation view

    Declaration
    public void InitMiniSimulationView(float width, float height)
    Parameters
    Type Name Description
    float width

    width of the viewport

    float height

    height of the viewport

    LookAt(Vector3, Quaternion, float, bool, bool)

    Look at a specific point from a given direction with a given zoom level, enabling and disabling perspective

    Declaration
    public void LookAt(Vector3 point, Quaternion direction, float newSize, bool ortho, bool instant)
    Parameters
    Type Name Description
    Vector3 point

    The position in world space to frame.

    Quaternion direction

    The direction that the Scene view should view the target point from.

    float newSize

    The amount of camera zoom. Sets size.

    bool ortho

    Whether the camera focus is in orthographic mode (true) or perspective mode (false).

    bool instant

    Apply the movement immediately (true) or animate the transition (false).

    Repaint()

    Make the view repaint.

    Declaration
    public void Repaint()

    SetupViewAsSimUser(bool)

    Setup the view as using the Simulation Scene.

    Declaration
    public void SetupViewAsSimUser(bool forceFrame = false)
    Parameters
    Type Name Description
    bool forceFrame

    Force using the framing of the simulated environment settings.

    SingleFrameRepaint(bool)

    Render the view as a single frame only

    Declaration
    public RenderTexture SingleFrameRepaint(bool frameView = false)
    Parameters
    Type Name Description
    bool frameView

    Frame the view

    Returns
    Type Description
    RenderTexture

    The render texture output of the view's composite

    Implements

    ISimulationView
    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)