Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectDefinition
References
| Module | SmartObjectsModule |
| Header | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectDefinition.h |
| Include | #include "SmartObjectDefinition.h" |
| Source | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Private/SmartObjectDefinition.cpp |
const USmartObjectBehaviorDefinition * GetBehaviorDefinition
(
const int32 SlotIndex,
const TSubclassOf < USmartObjectBehaviorDefinition > & DefinitionClass
) const
Remarks
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. The behavior definition found or null if none are available for the requested type.
Parameters
| Name | Description |
|---|---|
| SlotIndex | Index of the slot for which the definition is requested |
| DefinitionClass | Type of the requested behavior definition |