This object needs to be in every realvirtual scene. It controls main central data (like scale...) and manages main realvirtual settings for the scene. More...

Public Member Functions | |
void | OnBeforeAwake () |
Called before Awake to initialize global settings and load preferences. | |
void | OnEnable () |
Called when the component is enabled, handles initialization and scene setup. | |
new void | StopSim () |
Stops the simulation for all realvirtual behaviors. | |
new void | StartSim () |
Starts the simulation for all realvirtual behaviors. | |
void | Quit () |
Quits the application. | |
void | Play () |
Starts the simulation and sets the time scale. | |
void | Pause () |
Pauses the simulation and optionally stops physics. | |
void | ConnectionButtonToggleOn () |
Enables connection mode and updates all realvirtual behaviors. | |
void | ConnectionButtonToggleOff () |
Disables connection mode and updates all realvirtual behaviors. | |
void | OnConnectionOpened (GameObject Interface) |
Called when an interface connection is opened. | |
void | OnConnectionClosed (GameObject Interface) |
Called when an interface connection is closed. | |
new void | ChangeConnectionMode (bool isconnected) |
void | SetStartView () |
void | ChangeTimeScale (float scale) |
void | SetView (int view) |
void | ActiveateView (int view) |
void | AddHideGroup (string group) |
void | RemoveHideGroup (string group) |
bool | GroupIsHidden (string group) |
void | ChangeUIEnable () |
void | MessageBox (string message, bool autoclose, float closeafterseconds) |
int | GetMUID (GameObject caller) |
void | BreakTriggeredByStep (rvUIToolbarButton breakbutton) |
void | ChangedTimeScale () |
void | OnUIButtonPressed (GameObject Button) |
void | RemoveMeshGizmo (meshGizmo lasthovered) |
void | ResetSelectedMeshes () |
void | SetMeshGizmoToSelectedMesh (meshGizmo clickedMesh, bool second) |
meshGizmo | signalGizmoMesh (GameObject obj, float pivotSize, Color meshColor, bool drawpivot, bool drawcenter) |
bool | CheckIfMeshIsHovered (GameObject obj) |
EditorGizmoOptions | GetGizmoOptions () |
void | UpdateSignals () |
void | UpdateConnectionButton () |
void | OnSceneLoaded () |
Called when a scene is loaded to perform initialization tasks. | |
![]() | |
void | PreStartSim () |
Is called by the realvirtualController before the component is started. | |
void | StartSim () |
Is called by the realvirtualController to start or stop the component. | |
void | StopSim () |
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< BehaviorInterfaceConnection > | UpdateConnectionInfo () |
List< Signal > | GetConnectedSignals () |
void | SetVisibility (bool visibility) |
Sets the visibility of this object including all subobjects. | |
List< BehaviorInterfaceConnection > | GetConnections () |
List< Signal > | GetSignals () |
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. | |
void | SetRbConstraints (RigidbodyConstraints constraints) |
virtual void | AwakeAlsoDeactivated () |
Static Public Member Functions | |
static void | HideInfo () |
Hides the info box permanently by saving preference. | |
static void | DeleteControllerPrefs () |
Deletes all Unity PlayerPrefs stored data. | |
static void | TurnOnConnectMode () |
Enables connection mode and saves the preference. | |
static void | TurnOffConnectMode () |
Disables connection mode and saves the preference. | |
static void | TurnOnDebugMode () |
Enables debug mode and saves the preference (requires restart to debug from start) | |
static void | TurnOffDebugMode () |
Disables debug mode and saves the preference. | |
static void | BroadcastAll (string fun) |
![]() | |
static bool | DirectionIsLinear (DIRECTION direction) |
Gets back if the direction is linear or a rotation. | |
Public Attributes | |
bool | Connected |
Indicates connection status to interfaces for toggling realvirtual components based on active status. | |
bool | ModelCheckerEnabled |
Performs model check before starting simulation. | |
bool | ValidationOnComponentsAdded |
Enables validation when components are added to GameObjects. | |
bool | ValidateBeforeStart |
Enables validation before entering play mode. | |
bool | StopPhysicsWhenPaused |
Stops physics when scene is paused. | |
float | Scale |
Global scale factor in millimeters for size adjustment. | |
bool | DebugMode |
Enables debug mode for development. | |
float | SpeedOverride |
Speed override factor for custom speed adjustment. | |
float | TimeScale |
Time scale factor affecting animations and physics. | |
List< string > | HideGroups |
List of groups to hide from UI. | |
bool | Restart |
Enables automatic scene restart. | |
float | RestartSceneAfterSeconds |
Restart delay in seconds. | |
bool | AdditiveLoadScenes |
Enables additive scene loading in editor. | |
List< string > | AdditiveScenes |
Scenes to load additively. | |
bool | EnablePositionDebug |
Enables position debugging. | |
int | DebugLayer |
Debug rendering layer. | |
float | HierarchyUpdateCycle |
Hierarchy update frequency in seconds. | |
bool | ShowHierarchyIcons |
Shows icons in hierarchy view. | |
float | WidthGroupName |
Width of group names in hierarchy. | |
bool | ShowComponents |
Shows component icons in hierarchy. | |
float | ScaleHandles |
Editor handle scale factor. | |
GameObject | StandardSource |
Standard source object for hotkey operations. | |
EditorGizmoOptions | EditorGizmoSettings |
Editor gizmo display settings. | |
bool | EnableHotkeys |
Enables editor hotkeys. | |
KeyCode | HotkeyQuickEdit |
Quick edit overlay hotkey. | |
KeyCode | HotkeySource |
Insert standard source hotkey. | |
KeyCode | HotkeyDelete |
Delete all MUs hotkey. | |
KeyCode | HotkeyCreateOnSource |
Create on source hotkey. | |
KeyCode | HotKeyFocus |
Focus selected object or center all. | |
KeyCode | HotKeyResetView |
Reset view to center all. | |
KeyCode | HotKeyDeselect |
Deselect all objects. | |
KeyCode | HotKeyTopView |
Switch to top view. | |
KeyCode | HotKeyFrontView |
Switch to front view. | |
KeyCode | HotKeyBackView |
Switch to back view. | |
KeyCode | HotKeyLeftView |
Switch to left view. | |
KeyCode | HotKeyRightView |
Switch to right view. | |
KeyCode | HotKeyOrthoViews |
Toggle orthogonal views. | |
KeyCode | HotKeyOrhtoBigger |
Increase orthogonal view size. | |
KeyCode | HotKeyOrhtoSmaller |
Decrease orthogonal view size. | |
KeyCode | HoteKeyOrthoDirection |
Change orthogonal view direction. | |
bool | UIEnabledOnStart |
Enables UI at runtime start. | |
bool | RuntimeInspectorEnabled |
Enables runtime inspector. | |
bool | ObjectSelectionEnabled |
Enables runtime object selection. | |
bool | HideInfoBox |
Hides runtime info box. | |
GameObject | RuntimeApplicationUI |
Runtime application UI reference. | |
GameObject | RuntimeAutomationUI |
Runtime automation UI reference. | |
List< GameObject > | LockedObjects |
List< string > | HiddenGroups |
List< GameObject > | ConnectionsActive |
InspectorController | InspectorController |
![]() | |
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 |
Protected Member Functions | |
new bool | hideactiveonly () |
![]() | |
bool | hidename () |
bool | hideactiveonly () |
virtual void | OnStopSim () |
virtual void | OnPreStartSim () |
virtual void | OnStartSim () |
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 () |
Additional Inherited Members | |
![]() | |
enum | ActiveOnly { Always , Connected , Disconnected , Never , DontChange } |
Detailed Description
This object needs to be in every realvirtual scene. It controls main central data (like scale...) and manages main realvirtual settings for the scene.
Member Function Documentation
◆ ConnectionButtonToggleOff()
void realvirtual.realvirtualController.ConnectionButtonToggleOff | ( | ) |
Disables connection mode and updates all realvirtual behaviors.
◆ ConnectionButtonToggleOn()
void realvirtual.realvirtualController.ConnectionButtonToggleOn | ( | ) |
Enables connection mode and updates all realvirtual behaviors.
◆ DeleteControllerPrefs()
|
static |
Deletes all Unity PlayerPrefs stored data.
◆ HideInfo()
|
static |
Hides the info box permanently by saving preference.
◆ OnBeforeAwake()
void realvirtual.realvirtualController.OnBeforeAwake | ( | ) |
Called before Awake to initialize global settings and load preferences.
IMPLEMENTS IBeforeAwake::OnBeforeAwake
Implements realvirtual.IBeforeAwake.
◆ OnConnectionClosed()
void realvirtual.realvirtualController.OnConnectionClosed | ( | GameObject | Interface | ) |
Called when an interface connection is closed.
◆ OnConnectionOpened()
void realvirtual.realvirtualController.OnConnectionOpened | ( | GameObject | Interface | ) |
Called when an interface connection is opened.
◆ OnEnable()
void realvirtual.realvirtualController.OnEnable | ( | ) |
Called when the component is enabled, handles initialization and scene setup.
◆ OnSceneLoaded()
void realvirtual.realvirtualController.OnSceneLoaded | ( | ) |
Called when a scene is loaded to perform initialization tasks.
IMPLEMENTS ISceneLoaded::OnSceneLoaded
Implements realvirtual.ISceneLoaded.
◆ Pause()
void realvirtual.realvirtualController.Pause | ( | ) |
Pauses the simulation and optionally stops physics.
◆ Play()
void realvirtual.realvirtualController.Play | ( | ) |
Starts the simulation and sets the time scale.
◆ Quit()
void realvirtual.realvirtualController.Quit | ( | ) |
Quits the application.
◆ StartSim()
new void realvirtual.realvirtualController.StartSim | ( | ) |
Starts the simulation for all realvirtual behaviors.
◆ StopSim()
new void realvirtual.realvirtualController.StopSim | ( | ) |
Stops the simulation for all realvirtual behaviors.
◆ TurnOffConnectMode()
|
static |
Disables connection mode and saves the preference.
◆ TurnOffDebugMode()
|
static |
Disables debug mode and saves the preference.
◆ TurnOnConnectMode()
|
static |
Enables connection mode and saves the preference.
◆ TurnOnDebugMode()
|
static |
Enables debug mode and saves the preference (requires restart to debug from start)
◆ UpdateSignals()
void realvirtual.realvirtualController.UpdateSignals | ( | ) |
Clear Info on all Signals
get all Behavior models
Member Data Documentation
◆ AdditiveLoadScenes
bool realvirtual.realvirtualController.AdditiveLoadScenes |
Enables additive scene loading in editor.
◆ AdditiveScenes
List<string> realvirtual.realvirtualController.AdditiveScenes |
Scenes to load additively.
◆ Connected
bool realvirtual.realvirtualController.Connected |
Indicates connection status to interfaces for toggling realvirtual components based on active status.
◆ DebugLayer
int realvirtual.realvirtualController.DebugLayer |
Debug rendering layer.
◆ DebugMode
bool realvirtual.realvirtualController.DebugMode |
Enables debug mode for development.
◆ EditorGizmoSettings
EditorGizmoOptions realvirtual.realvirtualController.EditorGizmoSettings |
Editor gizmo display settings.
◆ EnableHotkeys
bool realvirtual.realvirtualController.EnableHotkeys |
Enables editor hotkeys.
◆ EnablePositionDebug
bool realvirtual.realvirtualController.EnablePositionDebug |
Enables position debugging.
◆ HideGroups
List<string> realvirtual.realvirtualController.HideGroups |
List of groups to hide from UI.
◆ HideInfoBox
bool realvirtual.realvirtualController.HideInfoBox |
Hides runtime info box.
◆ HierarchyUpdateCycle
float realvirtual.realvirtualController.HierarchyUpdateCycle |
Hierarchy update frequency in seconds.
◆ HoteKeyOrthoDirection
KeyCode realvirtual.realvirtualController.HoteKeyOrthoDirection |
Change orthogonal view direction.
◆ HotKeyBackView
KeyCode realvirtual.realvirtualController.HotKeyBackView |
Switch to back view.
◆ HotkeyCreateOnSource
KeyCode realvirtual.realvirtualController.HotkeyCreateOnSource |
Create on source hotkey.
◆ HotkeyDelete
KeyCode realvirtual.realvirtualController.HotkeyDelete |
Delete all MUs hotkey.
◆ HotKeyDeselect
KeyCode realvirtual.realvirtualController.HotKeyDeselect |
Deselect all objects.
◆ HotKeyFocus
KeyCode realvirtual.realvirtualController.HotKeyFocus |
Focus selected object or center all.
◆ HotKeyFrontView
KeyCode realvirtual.realvirtualController.HotKeyFrontView |
Switch to front view.
◆ HotKeyLeftView
KeyCode realvirtual.realvirtualController.HotKeyLeftView |
Switch to left view.
◆ HotKeyOrhtoBigger
KeyCode realvirtual.realvirtualController.HotKeyOrhtoBigger |
Increase orthogonal view size.
◆ HotKeyOrhtoSmaller
KeyCode realvirtual.realvirtualController.HotKeyOrhtoSmaller |
Decrease orthogonal view size.
◆ HotKeyOrthoViews
KeyCode realvirtual.realvirtualController.HotKeyOrthoViews |
Toggle orthogonal views.
◆ HotkeyQuickEdit
KeyCode realvirtual.realvirtualController.HotkeyQuickEdit |
Quick edit overlay hotkey.
◆ HotKeyResetView
KeyCode realvirtual.realvirtualController.HotKeyResetView |
Reset view to center all.
◆ HotKeyRightView
KeyCode realvirtual.realvirtualController.HotKeyRightView |
Switch to right view.
◆ HotkeySource
KeyCode realvirtual.realvirtualController.HotkeySource |
Insert standard source hotkey.
◆ HotKeyTopView
KeyCode realvirtual.realvirtualController.HotKeyTopView |
Switch to top view.
◆ ModelCheckerEnabled
bool realvirtual.realvirtualController.ModelCheckerEnabled |
Performs model check before starting simulation.
◆ ObjectSelectionEnabled
bool realvirtual.realvirtualController.ObjectSelectionEnabled |
Enables runtime object selection.
◆ Restart
bool realvirtual.realvirtualController.Restart |
Enables automatic scene restart.
◆ RestartSceneAfterSeconds
float realvirtual.realvirtualController.RestartSceneAfterSeconds |
Restart delay in seconds.
◆ RuntimeApplicationUI
GameObject realvirtual.realvirtualController.RuntimeApplicationUI |
Runtime application UI reference.
◆ RuntimeAutomationUI
GameObject realvirtual.realvirtualController.RuntimeAutomationUI |
Runtime automation UI reference.
◆ RuntimeInspectorEnabled
bool realvirtual.realvirtualController.RuntimeInspectorEnabled |
Enables runtime inspector.
◆ Scale
float realvirtual.realvirtualController.Scale |
Global scale factor in millimeters for size adjustment.
◆ ScaleHandles
float realvirtual.realvirtualController.ScaleHandles |
Editor handle scale factor.
◆ ShowComponents
bool realvirtual.realvirtualController.ShowComponents |
Shows component icons in hierarchy.
◆ ShowHierarchyIcons
bool realvirtual.realvirtualController.ShowHierarchyIcons |
Shows icons in hierarchy view.
◆ SpeedOverride
float realvirtual.realvirtualController.SpeedOverride |
Speed override factor for custom speed adjustment.
◆ StandardSource
GameObject realvirtual.realvirtualController.StandardSource |
Standard source object for hotkey operations.
◆ StopPhysicsWhenPaused
bool realvirtual.realvirtualController.StopPhysicsWhenPaused |
Stops physics when scene is paused.
◆ TimeScale
float realvirtual.realvirtualController.TimeScale |
Time scale factor affecting animations and physics.
◆ UIEnabledOnStart
bool realvirtual.realvirtualController.UIEnabledOnStart |
Enables UI at runtime start.
◆ ValidateBeforeStart
bool realvirtual.realvirtualController.ValidateBeforeStart |
Enables validation before entering play mode.
◆ ValidationOnComponentsAdded
bool realvirtual.realvirtualController.ValidationOnComponentsAdded |
Enables validation when components are added to GameObjects.
◆ WidthGroupName
float realvirtual.realvirtualController.WidthGroupName |
Width of group names in hierarchy.