Class MiniSimulationView
Inheritance
MiniSimulationView
Syntax
[Serializable]
public class MiniSimulationView : ScriptableObject, ISimulationView, ICompositeView
Properties
BackgroundColor
Declaration
public Color BackgroundColor { get; }
Property Value
BackgroundSceneActive
Declaration
public bool BackgroundSceneActive { get; }
Property Value
camera
Camera used to render the view.
Declaration
public Camera camera { get; }
Property Value
Implements
CameraTargetDescriptor
Declaration
public RenderTextureDescriptor CameraTargetDescriptor { get; }
Property Value
Type |
Description |
RenderTextureDescriptor |
|
CompositeCamera
Declaration
public Camera CompositeCamera { get; }
Property Value
ContextViewType
Declaration
public ContextViewType ContextViewType { get; }
Property Value
DesaturateComposited
Declaration
public bool DesaturateComposited { get; }
Property Value
isRotationLocked
Declaration
public bool isRotationLocked { get; set; }
Property Value
Implements
orthographic
Declaration
public bool orthographic { get; set; }
Property Value
Implements
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
Implements
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
SceneType
Declaration
public ViewSceneType SceneType { get; set; }
Property Value
Implements
ShowImageEffects
Declaration
public bool ShowImageEffects { get; }
Property Value
size
Declaration
public float size { get; set; }
Property Value
Implements
TargetCamera
Declaration
public Camera TargetCamera { get; }
Property Value
UseXRay
Declaration
public bool UseXRay { get; }
Property Value
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
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
Repaint()
Declaration
Implements
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
SingleFrameRepaint(Boolean)
Declaration
public RenderTexture SingleFrameRepaint(bool frameView = false)
Parameters
Type |
Name |
Description |
Boolean |
frameView |
|
Returns
Type |
Description |
RenderTexture |
|