No Matches
realvirtual.SceneMouseNavigation Class Reference

Controls the Mouse and Touch navigation in Game mode.

Inheritance diagram for realvirtual.SceneMouseNavigation:

Public Member Functions

void OnButtonOrthoOverlay (GenericButton button)
void OnButtonOrthographicView (GenericButton button)
void SetOrthographicView (bool active)
void BlockRotation (bool block, bool onlyleftmouse)
void OnViewButton (GenericButton button)
void SetNewCameraPosition (Vector3 targetpos, float camdistance, Vector3 camrotation)
void SetViewDirection (Vector3 camrotation)
void ActivateCinemachine (bool activate)
void Init ()
- Public Member Functions inherited from realvirtual.realvirtualBehavior
void SetForceStop (bool forcestop)
Vector3 DirectionToVector (DIRECTION direction)
 Transfers the direction enumeration to a vector.
DIRECTION VectorToDirection (bool torotatoin, Vector3 vector)
 Transfers a vector to the direction enumeration.
float GetLocalScale (Transform thetransform, DIRECTION direction)
List< BehaviorInterfaceConnectionUpdateConnectionInfo ()
List< SignalGetConnectedSignals ()
void SetVisibility (bool visibility)
 Sets the visibility of this object including all subobjects.
List< BehaviorInterfaceConnectionGetConnections ()
List< SignalGetSignals ()
GameObject GetChildByName (string name)
 Gets a child by name.
List< GameObject > GetChildsByName (string name)
 Gets all child by name.
GameObject GetChildByNameAlsoHidden (string name)
List< GameObject > GetAllMeshesWithGroup (string group)
List< GameObject > GetAllWithGroup (string group)
List< GameObject > GetAllWithGroups (List< string > groups)
List< GameObject > GetAllMeshesWithGroups (List< string > groups)
List< string > GetMyGroups ()
List< GameObject > GetMeshesWithSameGroups ()
List< GameObject > GetAllWithSameGroups ()
MeshRenderer GetMeshRenderer ()
 Gets the mesh renderers in the childrens.
void SetCollider (bool enabled)
 sets the collider in all child objects
void ErrorMessage (string message)
 Displays an error message.
void ChangeConnectionMode (bool isconnected)
void Log (string message)
 Logs a message.
void Log (string message, object obj)
 Logs a message with a relation to an object.
void Warning (string message, object obj)
 Logs a warinng with a relation to an object.
void Error (string message, object obj)
 Logs an error with a relation to an object.
void Error (string message)
 Logs an error.
GameObject DebugPosition (string debugname, Vector3 position, Quaternion quaternation, float scale)
 Displays a gizmo for debugging positions.
void SetFreezePosition (bool enabled)
 Freezes all child components to the current poosition.
virtual void AwakeAlsoDeactivated ()

Public Attributes

bool UseOrbitCameraMode = false
 Toggle the orbit camera mode.
bool BlockRotationOnSelected = false
bool FirstPersonControllerActive = true
 Toggle the first person controller.
bool RotateWithLeftMouseButton = false
 Rotate the camera with the left mouse button.
bool RotateToFocusObject = false
 Rotates the camera to focused objects instead of panning the camera.
FirstPersonController FirstPersonController
 Reference to the first person controller script.
CameraPos LastCameraPosition
 The last camera position before switching modes.
bool SetCameraPosOnStartPlay = true
 Set the camera position on start play.
bool SaveCameraPosOnQuit = true
 Save the camera position on quitting the application.
bool SetEditorCameraPos = true
 Set the editor camera position.
Transform target
 The target of the camera.
Vector3 targetOffset
 Offset of the camera's target.
float distance = 5.0f
 The distance of the camera from its target.
bool CalclulateMaxDistanceWithBoundingBox
 Calculate the maximum distance using the bounding box of the scene. More...
float DPIScale = 1
 The DPI scale of the screen, is automatically calculated and is used to scale all screen pixel related distances measurements.
bool ZoomToMousePos = false
float maxDistance = 20
 Zooms always at position of pointer pos and not to at screen center if true. More...
float minDistance = .6f
 The minimum distance of the camera from its target.
float MouseRotationSpeed = 1f
 The speed of rotation around the y-axis.
float MinHorizontalRotation = 0
 The minimum angle limit for the camera rotation around the x-axis.
float MaxHorizontalRotation = 100
 The maximum angle limit for the camera rotation around the x-axis.
float ZoomSpeed = 1
 The speed of zooming in and out, 1 is standard.
float RotDamping = 1f
 The speed at which the zooming slows down, 1 is standard.
float PanDamping = 1
 The speed at which the panning slows down, 1 is standard.
float ZoomDamping = 1f
 The speed at which the zooming slows down, 1 is standard.
float orthoPanSpeed = 1
 The speed of panning the camera in orthographic mode.
float StartDemoOnInactivity = 5.0f
 The time to wait before starting the demo due to inactivity.
float DurationNoMouseActivity = 0
 The time without any mouse activity before considering the camera inactive.
GameObject DebugObj
TouchInteraction Touch
 The touch interaction script.
float TouchPanSpeed = 1f
 The speed of rotating with touch.
float TouchRotationSpeed = 1f
 The speed of rotating with touch.
float TouchZoomSpeed = 1f
 The speed of zooming with touch.
bool TouchInvertVertical = false
bool TouchInvertHorizontal = false
 Touch invert vertical.
bool EnableSpaceNavigator = true
 Touch invert horizontal.
float SpaceNavTransSpeed = 1
 Enable space navigator.
float currentDistance
 Space navigator translation speed.
float desiredDistance
 Current distance.
Quaternion currentRotation
 Desired distance.
Quaternion desiredRotation
 Current rotation.
bool isrotating = false
 Desired rotation.
bool CinemachineIsActive = false
bool orthograhicview = false
OrthoViewController orthoviewcontroller
bool blockleftmouserotation = false
- Public Attributes inherited from realvirtual.realvirtualBehavior
string Name
 The name of the component if it should be different from the GameObject name.
ActiveOnly Active
GameObject FromTemplate
realvirtualController realvirtualController
bool HideNonG44Components
bool SceneIsAdditive
bool ForceStop = false

Additional Inherited Members

- Public Types inherited from realvirtual.realvirtualBehavior
enum  ActiveOnly
- Static Public Member Functions inherited from realvirtual.realvirtualBehavior
static bool DirectionIsLinear (DIRECTION direction)
 Gets back if the direction is linear or a rotation.
- Protected Member Functions inherited from realvirtual.realvirtualBehavior
bool hidename ()
bool hideactiveonly ()
virtual void OnStop ()
virtual void OnStart ()
MU GetTopOfMu (GameObject obj)
 Gets the top of an MU component (the first MU script going up in the hierarchy)
void InitGame4Automation ()
 Initialiates the components and gets the reference to the realvirtualController in the scene.
virtual void AfterAwake ()
void Awake ()

Member Function Documentation

◆ SetOrthographicView()

void realvirtual.SceneMouseNavigation.SetOrthographicView ( bool  active)

no changes

Member Data Documentation

◆ CalclulateMaxDistanceWithBoundingBox

bool realvirtual.SceneMouseNavigation.CalclulateMaxDistanceWithBoundingBox
Initial value:

◆ maxDistance

float realvirtual.SceneMouseNavigation.maxDistance = 20

The maximum distance of the camera from its target