Skip to content

GameObject Check Has Data

Test whether a GameObject has a Data Component, optionally filtered by Data Definition.

Parameters

Parameter Description
Game Object The GameObject to check.
Data Definition Optional filter when the GameObject can have multiple Data Components.
True Event Event sent when matching data exists.
False Event Event sent when matching data does not exist.

⚙ Details

Use this action as a branch condition in your FSM. If no Data Definition is set, it checks for any Data Component on the GameObject.

Examples

  • Branch to an initialization state only when data is missing.
  • Verify a target has the correct data type before reading fields.