Skip to content

GameObject Data

Actions for adding, checking, reading, updating, and removing Data Components on GameObjects.

GameObject Data Actions

Add Data

Add a Data Component to a GameObject.

Check Has Data

Check whether a GameObject has a Data Component.

Get Data

Get data from a GameObject Data Component.

Get Data Field

Get a specific data field value from a GameObject.

Get Data Record

Get the full DataRecord from a GameObject Data Component.

Get Data Component

Get a matching Data Component on a GameObject.

Get Data Components In Children

Get all matching components in a GameObject hierarchy.

GameObject Get DataTable

Get a DataTable from a DataTableComponent on a GameObject.

On Data Changed

Send an event when data on a GameObject changes.

Remove Data

Remove a Data Component from a GameObject.

Set Data

Set data on a GameObject Data Component.

Set Data Field

Set a specific data field value on a GameObject.

Debugging

You can inspect each GameObject's Data Component directly in the Unity Inspector while your FSM runs. Watch the Data Component values as actions execute to confirm reads, writes, and runtime changes.

See also