Get Config from request

You can get the config instance from a request handle by doing:

  • USmartObjectSubsystem::GetBehaviorDefinitionByRequestResult
  • from UGameplayBehaviorSmartObjectBehaviorDefinition get GameplayBehaviorConfig (c++ only)
  • from there you can cast the config object to yours and get the variables you set there (if you had any variables bound to a parameter in the smart object definition, it will be set to that value)

Example:

Config:

Definition:

Component:

Code (with custom config getter function):