MANU
  • Quick Start Guide
  • Learn
    • Manual
      • Installing MANU
      • Welcome Screen
      • Workspace Modes
        • Edit Mode
        • Animation Mode
        • Game Mode
      • Scene Panel
      • Main Toolbar
      • Primitives
      • Collider
      • Lights
      • Speaker
      • Importing 3D Objects
      • Main Character
      • Camera
      • Transforms
      • Materials
        • Texture Maps
          • Difuse/Albedo
          • Alpha
          • Normal
          • Ambient Occlusion
          • Roughness
          • Metalness
          • Emissive
        • Basic
        • Matcap
        • PBR
        • Glass
        • Glow
        • Texture Tiling
        • Texture Offset
        • Cast Shadow
        • Opacity type
          • Opaque
          • Transparency
          • Cutout
      • Physics
        • Static Objects
        • Dynamic Objects
        • Kinematic Objects
        • Ghost Objects
        • Disabling Object's Rigidbody
        • Collider
      • Animation Timeline
      • Triggers
        • On Launch Scene
        • Key
        • Collision
        • Animation
        • State Machine
        • Comparsion
        • Game Flow
        • Trigger
        • Object Enabled
        • Network
      • State Machine
        • State Machine — Example
      • Game Flow
      • Prefabs and Assets
      • Gravity
      • Sky
      • Variables
        • Number
        • Boolean
        • Object
        • Tag
      • Tags
      • Lightmapping
      • Paint Group
      • Export Game & Assets
        • Export Games to MANU Marketplace
        • Export Assets to Marketplace
        • Export Game on Mobile devices
        • Export Game on disk
      • Lightmapping
      • Post Processing
        • Depth of Field (DOF)
        • Chromatic Aberrations
        • Bloom
        • Color Correction
        • Screen Space Ambient Occlusion (SSAO)
        • Screen Space Local Reflections (SSLR)
    • Tutorials
    • Formulas
    • Keyboard shortcuts
  • More
    • FAQ
    • Contact Support
    • Changelog
Powered by GitBook
On this page

Was this helpful?

  1. Learn
  2. Manual
  3. Triggers

Comparsion

PreviousState MachineNextGame Flow

Last updated 1 year ago

Was this helpful?

The comparison trigger monitors the conditions under which numbers or variable values meet the comparison conditions. Comparison conditions can be as follows:

  • (=) Equal - variables or numbers are equal

  • (≠) Not Equal - variables or numbers are not equal

  • (>) More - the first variable or number is greater than the second variable or number

  • (≥) More - the first variable or number is greater than or equal to the second variable or number

  • (<) Less - first variable or number less than the second variable or number

  • (≤) Less - the first variable or number less than or equal to the second variable or number

You can change the comparison condition in an already created trigger by clicking the icon between the parameters being compared.

The comparison objects can be:

  • Numbers, you can compare to numbers or numeric variables

Comparison of variables of different types has no sense (except for numeric and boolean variables) and will be triggered only when comparing by (≠).

Events are tracked by 4 states Started, Continue, End,False

Comparsion Started

The trigger is activated as soon as the specified expression becomes true. If it has been true since the game started, the trigger will not work.

Comparsion Continue

The trigger activates and continues as long as the specified expression remains true.

Comparsion Ended

The trigger activates as soon as the specified expression is no longer true. If it has been false since the game started, the trigger will not work.

Comparsion False

The trigger activates and continues its operation as long as the specified expression remains incorrect.

Numeric variables, can be compared to numbers and other numeric variables

Boolean variables, can only be compared to boolean or numeric variables. When comparing with numeric variables, the value is false=0, true=1.

Variables of object type, can be compared only with variables of object type. Comparison can be performed only by conditions (=) or (≠)

Variables of the tag type, can be compared only with variables of the tag type. Comparison can be made only by conditions (=) or (≠).