🔢Variable Listeners & Comparers

🚧 WIP 1.4.2c

Overview

All variable listener and comparers are simple components that hold variable values, and react when these values change via Unity Events.

These are usually used to connect 3rdParty assets with AC, or Store variables that can be used by the Animal Brain.

Currently, these are available components:

  • Float Listener

  • Int Listener

  • Bool Listener

  • String Listener

  • Transform Listener

  • Vector3 Listener

  • Float Comparer

  • Int Comparer

  • Object Comparer

  • String Comparer

  • Transform Comparer

Inspector (Float, Int, Bool, String)

Value

Value of the Listener, when the value changes, the events are raised.

The events are also raised On Enable

ID

Identifier for the Listener component. This is useful to when there are more than one Listener of the same variable type attached to a GameObject.

Show Events [ ↑] [↓]

The Right Button will show the events of each Listener Component.

Inspector (Transform)

Value

Value of the Listener, when the value changes, the events are raised.

The events are also raised On Enable

Transform

The transform to listen to

On Value Changed

Invoked when the value of the transform changes

On Value Null

Invoked when the transform's value is null

Inspector (Vector3)

Value

The X Y and Z values. When the value changes the events are raised.

ID

Identifier for the Listener component. This is useful to when there are more than one Listener of the same variable type attached to a GameObject.

Comparers

Last updated