Measure component for calculating and monitoring distances between GameObjects in real-time. More...
Public Member Functions | |
| void | DrawString (string text, Vector3 worldPos, Color? textColor=null, Color? backColor=null) |
Public Member Functions inherited from realvirtual.BehaviorInterface | |
| new List< BehaviorInterfaceConnection > | GetConnections () |
| Returns a list of behavior interface connections for this component. | |
| new List< Signal > | GetSignals () |
| Returns a list of connected signals for this component. | |
Public Member Functions inherited from realvirtual.realvirtualBehavior | |
| 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 () |
Public Attributes | |
| GameObject | MeasureFrom |
| The object from which the Distance between Pivot Points should be measured to this objects Pivot Point. | |
| Vector3 | Distance |
| The measured distance (read only) as Vector in World coordinates. | |
| float | DistanceAbs |
| The measured distance (read only) as absolute value in World coordinates. | |
| Vector3 | SetDistance |
| The distance that should be set when button Set Distance is pushed. | |
| bool | KeepSetDistance |
| True if the distance should be always kept as the value in SetDistance. | |
| bool | DisplayOnSelected |
| Display measurement in Scene window when selected. | |
| bool | DisplayAlways |
| Display measurement in Scene window always. | |
| bool | DisplayLine |
| Display a line between points. | |
| bool | DisplayAbs |
| Display the absolute value in Scene window. | |
| bool | DisplayVector |
| Display the vector in World coordinates in Scene window. | |
| bool | UseMillimeters |
| Use Millimeters on display and PLCSignal (1 Unity scale = 1000mm) | |
| float | PLCSignalOffset |
| Offset to the PLCSignal. | |
| PLCInputFloat | MeasuredDistance |
| The absolute distance as PLCInputFloat. | |
| PLCInputFloat | MeasuredDistanceX |
| The distance in World X coordinates as PLCInputFloat. | |
| PLCInputFloat | MeasuredDistanceY |
| The distance in World Y coordinates as PLCInputFloat. | |
| PLCInputFloat | MeasuredDistanceZ |
| The distance in World Z coordinates as PLCInputFloat. | |
Public Attributes inherited from realvirtual.BehaviorInterface | |
| List< BehaviorInterfaceConnection > | ConnectionInfo |
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 |
Additional Inherited Members | |
Public Types inherited from realvirtual.realvirtualBehavior | |
| enum | ActiveOnly { Always , Connected , Disconnected , Never , DontChange } |
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 | 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 () |
Properties inherited from realvirtual.ISignalInterface | |
| GameObject | gameObject [get] |
Detailed Description
Measure component for calculating and monitoring distances between GameObjects in real-time.
Provides continuous distance measurement between pivot points with visual feedback in the Scene view. Supports both absolute and vector distance output, automatic position maintenance, and PLC signal integration for position feedback control.
Member Data Documentation
◆ DisplayAbs
| bool realvirtual.Measure.DisplayAbs |
Display the absolute value in Scene window.
◆ DisplayAlways
| bool realvirtual.Measure.DisplayAlways |
Display measurement in Scene window always.
◆ DisplayLine
| bool realvirtual.Measure.DisplayLine |
Display a line between points.
◆ DisplayOnSelected
| bool realvirtual.Measure.DisplayOnSelected |
Display measurement in Scene window when selected.
◆ DisplayVector
| bool realvirtual.Measure.DisplayVector |
Display the vector in World coordinates in Scene window.
◆ Distance
| Vector3 realvirtual.Measure.Distance |
The measured distance (read only) as Vector in World coordinates.
◆ DistanceAbs
| float realvirtual.Measure.DistanceAbs |
The measured distance (read only) as absolute value in World coordinates.
◆ KeepSetDistance
| bool realvirtual.Measure.KeepSetDistance |
True if the distance should be always kept as the value in SetDistance.
◆ MeasuredDistance
| PLCInputFloat realvirtual.Measure.MeasuredDistance |
The absolute distance as PLCInputFloat.
◆ MeasuredDistanceX
| PLCInputFloat realvirtual.Measure.MeasuredDistanceX |
The distance in World X coordinates as PLCInputFloat.
◆ MeasuredDistanceY
| PLCInputFloat realvirtual.Measure.MeasuredDistanceY |
The distance in World Y coordinates as PLCInputFloat.
◆ MeasuredDistanceZ
| PLCInputFloat realvirtual.Measure.MeasuredDistanceZ |
The distance in World Z coordinates as PLCInputFloat.
◆ MeasureFrom
| GameObject realvirtual.Measure.MeasureFrom |
The object from which the Distance between Pivot Points should be measured to this objects Pivot Point.
◆ PLCSignalOffset
| float realvirtual.Measure.PLCSignalOffset |
Offset to the PLCSignal.
◆ SetDistance
| Vector3 realvirtual.Measure.SetDistance |
The distance that should be set when button Set Distance is pushed.
◆ UseMillimeters
| bool realvirtual.Measure.UseMillimeters |
Use Millimeters on display and PLCSignal (1 Unity scale = 1000mm)
Public Member Functions inherited from