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 FSmartObjectRuntimeSlot
Remarks
Struct to store and manage state of a runtime instance associated to a given slot definition
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint8: 1 | bObjectEnabled | True if the parent smart object is enabled | |
| uint8: 1 | bSlotEnabled | True if the slot is enabled | |
| ESmartObjectClaimPriority | ClaimedPriority | ||
| FVector3f | Offset | Offset of the slot relative to the Smart Object. | |
| FOnSlotInvalidated | OnSlotInvalidatedDelegate | Delegate used to notify when a slot gets invalidated. See RegisterSlotInvalidationCallback | |
| FWorldConditionQueryState | PreconditionState | World condition runtime state. | |
| FRotator3f | Rotation | Rotation of the slot relative to the Smart Object. | |
| ESmartObjectSlotState | State | Current availability state of the slot | |
| FInstancedStructContainer | StateData | Slot state data that can be added at runtime. | |
| FGameplayTagContainer | Tags | Runtime tags associated with this slot. | |
| FSmartObjectUserHandle | User | Handle to the user that reserves or uses the slot | |
| FInstancedStruct | UserData | Struct used to store contextual data of the user when claiming or using a slot. |
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. | ||
| bool | CanBeClaimed
(
ESmartObjectClaimPriority ClaimPriority |
Sets the slot claimed. | |
| bool | CanBeClaimed () |
||
| bool | Claim
(
const FSmartObjectUserHandle& InUser |
||
| bool | Claim
(
const FSmartObjectUserHandle& InUser, |
||
| FInstancedStructContainer & | |||
| FTransform | |||
| FVector3f | |||
| FRotator3f | |||
| FTransform | GetSlotWorldTransform
(
const FTransform& OwnerTransform |
||
| ESmartObjectSlotState | GetState () |
||
| const FInstancedStructContainer & | GetStateData () |
||
| const FGameplayTagContainer & | GetTags () |
||
| FConstStructView | GetUserData () |
||
| bool | IsEnabled () |
||
| bool | Release
(
const FSmartObjectClaimHandle& ClaimHandle, |