docs.unity3d.com
    显示 / 隐藏目录

    Class MiniSimulationView

    Inheritance
    Object
    Object
    ScriptableObject
    MiniSimulationView
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    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, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: Unity.MARS
    Syntax
    [Serializable]
    public class MiniSimulationView : ScriptableObject, ISimulationView, ICompositeView

    Properties

    BackgroundColor

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

    BackgroundSceneActive

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

    camera

    Camera used to render the view.

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

    CameraTargetDescriptor

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

    CompositeCamera

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

    ContextViewType

    Declaration
    public ContextViewType ContextViewType { get; }
    Property Value
    Type Description
    ContextViewType

    DesaturateComposited

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

    isRotationLocked

    Declaration
    public bool isRotationLocked { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    ISimulationView.isRotationLocked

    orthographic

    Is the scene view ortho.

    Declaration
    public bool orthographic { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    ISimulationView.orthographic

    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
    Implements
    ISimulationView.pivot

    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
    Implements
    ISimulationView.rotation

    SceneType

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

    ShowImageEffects

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

    size

    Declaration
    public float size { get; set; }
    Property Value
    Type Description
    Single
    Implements
    ISimulationView.size

    TargetCamera

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

    UseXRay

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

    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(Single, Single)

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

    LookAt(Vector3, Quaternion, Single, Boolean, Boolean)

    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.

    Single newSize

    The amount of camera zoom. Sets size.

    Boolean ortho

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

    Boolean instant

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

    Implements
    ISimulationView.LookAt(Vector3, Quaternion, Single, Boolean, Boolean)

    Repaint()

    Make the view repaint.

    Declaration
    public void Repaint()
    Implements
    ISimulationView.Repaint()

    SetupViewAsSimUser(Boolean)

    Setup the view as using the Simulation Scene.

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

    Force using the framing of the simulated environment settings.

    Implements
    ISimulationView.SetupViewAsSimUser(Boolean)

    SingleFrameRepaint(Boolean)

    Declaration
    public RenderTexture SingleFrameRepaint(bool frameView = false)
    Parameters
    Type Name Description
    Boolean frameView
    Returns
    Type Description
    RenderTexture
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)