Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule
References
| Module | SmartObjectsModule |
| Header | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectRuntime.h |
| Include | #include "SmartObjectRuntime.h" |
Syntax
USTRUCT ()
struct FSmartObjectRuntime
Remarks
Struct to store and manage state of a runtime instance associated to a given smart object definition
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Provide default constructor to be able to compile template instantiation 'UScriptStruct::TCppStructOps |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Indicates if preconditions were successfully initialized. | ||
| FString | |||
| const USmartObjectDefinition & | |||
| PRAGMA_ENABLE_DEPRECATION_WARNINGS const FOnSmartObjectEvent & | |||
| FOnSmartObjectEvent & | |||
| FSmartObjectRuntimeSlot & | GetMutableSlot
(
const int32 Index |
||
| AActor * | GetOwnerActor
(
ETrySpawnActorIfDehydrated TrySpawnActorIfDehydrated |
Returns the actor associated to the smart object instance. | |
| USmartObjectComponent * | GetOwnerComponent
(
ETrySpawnActorIfDehydrated TrySpawnActorIfDehydrated |
Returns the actor associated to the smart object instance. | |
| FSmartObjectHandle | |||
| const FSmartObjectRuntimeSlot & | |||
| FSmartObjectSlotHandle | GetSlotHandle
(
const int32 Index |
||
| TConstArrayView< FSmartObjectRuntimeSlot > | GetSlots () |
||
| PRAGMA_DISABLE_DEPRECATION_WARNINGSFOnSmartObjectTagChanged & | Returns delegate that is invoked whenever a tag is added or removed | ||
| const FGameplayTagContainer & | GetTags () |
Returns all tags assigned to the smart object instance | |
| const FTransform & | GetTransform () |
||
| bool | IsEnabled () |
Indicates if the Smart Object is enabled regardless of the reason. | |
| bool | IsEnabledForReason
(
FGameplayTag ReasonTag |
Indicates if the Smart Object is enabled based on a specific reason. | |
| void | SetEnabled
(
FGameplayTag ReasonTag, |
Enables or disables the entire smart object. |
Constants
| Name | Description |
|---|---|
| MaxNumDisableFlags |