Measurement Actions
Measurement actions read spatial relationships from Transforms without modifying them.
Use these to drive logic such as proximity checks, aiming decisions, visibility checks, and screen-space UI triggers.
Get Distance To Point
TransformGetDistanceToPoint measures distance from a Transform to a world position.
| Parameter | Description |
|---|---|
| Transform | The Transform to measure from. |
| World Point | The world position to measure to. |
| Get Distance | Stores the distance result. |
| Axis | Axis used for measuring (X, Y, Z, XY, XZ, YZ, XYZ). |
Get Distance To Target
TransformGetDistanceToTarget measures distance between two Transforms.
| Parameter | Description |
|---|---|
| Transform | The Transform to measure from. |
| Target | The target Transform. |
| Get Distance | Stores the distance result. |
| Axis | Axis used for measuring (X, Y, Z, XY, XZ, YZ, XYZ). |
Get Angle To Target
TransformGetAngleToTarget gets the unsigned angle (degrees) from a Transform forward axis to a target.
| Parameter | Description |
|---|---|
| Transform | The source Transform. |
| Target | The target Transform. |
| Get Angle | Stores the angle in degrees. |
| Forward Axis | Local axis treated as forward when calculating angle. |
Get Signed Angle To Target
TransformGetSignedAngleToTarget gets a signed angle (degrees) from a Transform forward axis to a target.
| Parameter | Description |
|---|---|
| Transform | The source Transform. |
| Target | The target Transform. |
| Get Angle | Stores the signed angle in degrees. |
| Forward Axis | Local axis treated as forward. |
| Sign Axis | Axis used to determine angle sign (for example Y for yaw). |
Is Close To Target
TransformCheckIsCloseToTarget checks whether a Transform is within a distance threshold of a target.
| Parameter | Description |
|---|---|
| Transform | The Transform to test. |
| Target | The target Transform. |
| Distance | Distance threshold. |
| Axis | Axis used for distance check. |
| True Event / False Event | Events sent by the true/false test result. |
Is Visible
TransformCheckIsVisible tests whether a bounds volume around a Transform is inside a camera frustum.
| Parameter | Description |
|---|---|
| Transform | The Transform to test. |
| Size | Bounds size used for visibility test. |
| Camera | Camera to test against. Uses Main Camera if not set. |
| True Event / False Event | Events sent by the true/false test result. |
Is In Screen Rect
TransformIsInScreenRect tests whether a Transform's screen position is inside a rectangle.
| Parameter | Description |
|---|---|
| Transform | The Transform to test. |
| Camera | Camera used for world-to-screen conversion. |
| Screen Rect | Screen-space rectangle to test against. |
| Normalized | If true, uses normalized screen coordinates (0..1). |
| True Event / False Event | Events sent by the true/false test result. |