Skip to main content

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.
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.
Marker ColorIf enabled, allows selecting the Inspector Marker color.

Example of Inspection Marker Preview


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.