Skip to content

GameObject Get Data Component

Get a Data Component on a GameObject that matches a DataDefinition.

Parameters

Parameter Description
Game Object The GameObject to query.
Data Definition Required definition to match the component.
Data Component Output matching Data Component reference.
Succeeded True if a matching component was found.

⚙ Details

  • Searches the target GameObject for a DataRecordComponent with a matching definition.
  • Fills the output reference and optionally a passed bool.

Examples

  • Find the enemy status component on a character object.
  • Locate the player save data component by definition.