Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectDefinition
Description
Retrieves a specific type of behavior definition for a given slot. When the slot doesn't provide one or if the provided index is not valid the search will look in the object default definitions.
| Name | GetBehaviorDefinition |
| Type | function |
| Header File | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectDefinition.h |
| Include Path | #include "SmartObjectDefinition.h" |
| Source | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Private/SmartObjectDefinition.cpp |
const USmartObjectBehaviorDefinition * GetBehaviorDefinition
(
const int32 SlotIndex,
const TSubclassOf < USmartObjectBehaviorDefinition > & DefinitionClass
) const
The behavior definition found or null if none are available for the requested type.
Parameters
| Name | Remarks |
|---|---|
| SlotIndex | Index of the slot for which the definition is requested |
| DefinitionClass | Type of the requested behavior definition |