Class SimulationView
MARS Simulation View displays a separate 3D scene by extending SceneView.
Inheritance
SimulationView
Syntax
[Serializable]
public class SimulationView : SceneView, ISimulationView
Fields
DeviceViewWindowTitle
Declaration
public const string DeviceViewWindowTitle = "Device View"
Field Value
SimulationViewWindowTitle
Declaration
public const string SimulationViewWindowTitle = "Simulation View"
Field Value
Properties
ActiveSimulationView
The last Simulation View the user focused
Declaration
public static SceneView ActiveSimulationView { get; }
Property Value
Type |
Description |
SceneView |
|
DesaturateInactive
Declaration
public bool DesaturateInactive { get; set; }
Property Value
EditorBackgroundColor
Declaration
public static Color EditorBackgroundColor { get; }
Property Value
EnvironmentSceneActive
Declaration
public bool EnvironmentSceneActive { get; set; }
Property Value
LastHoveredSimulationOrDeviceView
The Simulation or Device View that was most recently hovered by the mouse
Declaration
public static SceneView LastHoveredSimulationOrDeviceView { get; }
Property Value
Type |
Description |
SceneView |
|
NormalSceneView
The primary scene view. Not a Simulation View.
Declaration
public static SceneView NormalSceneView { get; }
Property Value
Type |
Description |
SceneView |
|
SceneType
Whether this view is in Sim or Device mode
Declaration
public ViewSceneType SceneType { get; set; }
Property Value
Implements
SimulationViews
List of all Simulation Views
Declaration
public static List<SimulationView> SimulationViews { get; }
Property Value
UseXRay
Declaration
public bool UseXRay { get; set; }
Property Value
Methods
Declaration
public override void AddItemsToMenu(GenericMenu menu)
Parameters
Type |
Name |
Description |
GenericMenu |
menu |
|
CacheLookAt(Vector3, Quaternion, Single)
Cache the LookAt information for the Simulation scene type when it is not the active view type
Declaration
public void CacheLookAt(Vector3 point, Quaternion direction, float newSize)
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 .
|
InitWindowInDeviceView()
Declaration
public static void InitWindowInDeviceView()
InitWindowInSimulationView()
Declaration
public static void InitWindowInSimulationView()
OnDestroy()
Declaration
protected virtual void OnDestroy()
OnDisable()
Declaration
public override void OnDisable()
OnEnable()
Declaration
public override void OnEnable()
OnGUI()
Declaration
protected override void OnGUI()
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
SupportsStageHandling()
Declaration
protected override bool SupportsStageHandling()
Returns
Extension Methods