Skip to main content
Version: 3.0.0

Object Conditions

The Object group contains the following conditions:

  • Distance Between Objects
  • Object is in Area
  • Object is Active
  • Object is Visible by Camera
  • Visually Inspect
  • Simple Visual Inspection
  • Button is Pressed
  • Integrity Check

Distance Between Objects​

Distance Between Object Condition

The Distance Between Objects exit condition checks the distance between two object transforms.

PropertyFunction
TargetDefine the object A from which start calculating the distance.
Less ThanDefine the maximum distance between the two objects to make the condition true.
FromDefine the object B to which calculate the distance.

Object is in Area​

Object is in Area Condition

The Object Is in Area exit condition becomes true if the target object is in the referenced area (Collider).

PropertyFunction
TargetDefine the object that should be in the area.
AreaDefine the area to check against (collider).
WhenSelect when to trigger the condition: Enters Area or Leaves Area.
HowSelect what to check to consider the condition true: Pivot = pivot point of the target. Bounding Box = bounding box of the target intersects the area. Full Body = full body of the target is inside the area.

Object is Active​

Object is Active Condition

The Object Is Active exit condition checks if the target object is/is not active in hierarchy.

PropertyFunction
TargetDefine the object to check.
Is ActiveIf enabled, checks if the object is active.

Object is Visible by Camera​

Object is Visible by Camera Condition

The Object Is Visible by Camera condition is true if the target object is/is not visible by the indicated camera.

PropertyFunction
TargetDefine the object to check.
CameraThe camera that should see the object. Otherwise, all cameras in the scenes are checked.
VisibleIf enabled, checks if the object is visible.

Visually Inspect​

Visually Inspect Condition

The Visually Inspect condition becomes true if the target is visualized by the defined camera according to the indicated time and distance.

PropertyFunction
TargetDefine the object to be inspected from the player.
Use Custom BoundsIf enabled, the inspection marker can be customized according to the preferred position and dimension; otherwise, the inspector marker depends on the Target bounding box center and dimensions. Sub-options when enabled: Preview = if enabled, the inspector marker is visualized in the scene. Marker = if enabled, the inspector marker can be moved to the desired position and scaled directly from the scene. Furthermore, the inspection distance can be modified from the scene according to the radius of the sphere that is visualized around the Target. Bounds = if enabled, the inspector bounds can be edited inside the scene. Reset = if enabled, the position of the inspector marker is set to the center of the Target.
Use Observation PointsIf enabled, the target is inspected through a set of discrete observation points instead of a single volume. See Observation Points below.
AccumulativeIf enabled, the inspection time is not reset to zero when the visual inspection is lost before the minimum time set.
TimeDefine the required inspection time. When observation points are used, the time is required for each point.
DistanceDefine the minimum distance from the Inspector camera to the center of the Target. When observation points are used, the distance applies to each point.
Show MarkerIf enabled, the inspector marker is showed according to the highlighted procedure mode.
Marker ColorIf enabled, allows selecting the Inspector Marker color.

Example of Inspection Marker Preview

Eye tracking​

The condition does not look only at the head/camera direction. The Inspector resolves what the user is observing through the eye-tracking provider when one is available: if continuous eye tracking is supported, it casts the user's left and right gaze rays against the target (or each observation point) and considers it observed when a gaze ray actually intersects it within the configured distance.

When no eye-tracking hardware is present, the Inspector automatically falls back to the camera frustum test (head/camera direction), so the same condition keeps working on devices without eye tracking. No extra configuration is required on the condition itself — the switch is automatic.

note

See the Eye Tracking page for the requirements (a headset with eye-tracking hardware and the corresponding runtime enabled).

Observation Points​

When Use Observation Points is enabled, the target is no longer inspected as a single volume. Instead you define a set of observation points — small spheres placed on the object — and each point is inspected independently. This is useful when the user must look over the whole surface of a large or complex object (for example a panel, a machine, or an inspection area) rather than just glancing at its center.

Each observation point has a position and a radius (scale) and can be edited directly in the scene. The Time and Distance values then apply to every single point, and the main condition aggregates the result of all points.

PropertyFunction
Percentage to ObservePercentage (1–100, default 100) of the observation points that must be observed before the object is considered fully inspected. Set below 100% to allow the condition to succeed even if some points are missed.
Redistribution DistanceMinimum distance kept between points when they are automatically redistributed over the object surface (default 0.5).
RedistributionButton that automatically spreads the existing observation points over the mesh surface of the target, keeping at least the Redistribution Distance between them. Requires the target to have a mesh.
Show Points MarkerIf enabled, a marker is shown on every observation point according to the selected procedure modes.
Points Marker ColorIf enabled, allows selecting the color of the per-point markers.
tip

Use Redistribute to quickly seed the points evenly across the object, then fine-tune the position and radius of individual points in the scene.


Simple Visual Inspection​

Simple Visual Inspection Condition

The Simple Visual Inspection is a simplified version of the Visually Inspect condition. This condition is true if the target is visualized by the defined camera according to the indicated time and distance.

PropertyFunction
TargetDefine the object to be inspected from the player.
AccumulativeIf enabled, the inspection time is not reset to zero when the visual inspection is lost before the minimum time set.
TimeDefine the required inspection time.
DistanceDefine the minimum distance from the Inspector camera to the center of the Target.
Show MarkerIf enabled, the inspector marker is showed according to the highlighted procedure mode.
PreviewShows a preview of the inspector marker inside the scene.
MarkerAllows to edit the marker position inside the scene.
ResetReset the position of the marker.

Button is Pressed​

Button is Pressed Condition

The Button Is Pressed condition becomes true when you press the target Unity Button.

PropertyFunction
Is PressedDefine the button to be checked.
Instant CheckIf enabled, the On Click event should be triggered more than once.

Integrity Check​

Integrity Check Condition

The Integrity Check condition allows you to create a quiz-like question using different objects as the answer. During the procedure, in the step where the condition is present, a billboard with the indicated question will be displayed.

PropertyFunction
Error IdID of the related error inside the Score System.
TitleBillboard's quiz title.
DescriptionQuestion.
PointPoint where the billboard will appear.
ObjectsAnswer's objects. The checked one is the correct answer.

Example: Consider a car engine scenario. To ask the user whether the oil tank is placed correctly or not, put the GameObject of the oil cap in the Objects list and check it to indicate it as the correct answer. During the procedure, the object will be randomly enabled or disabled.