Skip to content

GameObject Remove Data

Remove one or more Data Components from a GameObject.

Parameters

Parameter Description
Game Object The GameObject to remove Data Components from.
Data Definition Optional filter to remove only components using this schema.
Mode First Match removes one matching component, All Matches removes all.
Removed True when at least one component was removed.
Removed Count Number of components removed.

⚙ Details

If no Data Definition is set, removal targets any Data Component on the GameObject. Use All Matches when cleanup must remove every matching component.

Examples

  • Remove temporary encounter data when unloading a combat zone.
  • Clear all matching runtime data components during a reset flow.