Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UDataAsset
- USmartObjectDefinition
References
Module | SmartObjectsModule |
Header | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectDefinition.h |
Include | #include "SmartObjectDefinition.h" |
Syntax
UCLASS&40;BlueprintType, Blueprintable, CollapseCategories&41;
class USmartObjectDefinition : public UDataAsset
Remarks
SmartObject definition asset. Contains sharable information that can be used by multiple SmartObject instances at runtime.
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FSmartObjectDefinitionPreviewData | PreviewData | Actor class used for previewing the user in the asset editor. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
USmartObjectDefinition
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
FSmartObjectSlotDefinition & | DebugAddSlot () |
Adds and returns a reference to a defaulted slot (used for testing purposes) |
![]() ![]() |
int32 | FindSlotByID
(
const FGuid ID |
|
![]() ![]() |
const FGameplayTagContainer & | Returns the list of tags describing the activity associated to this definition | |
![]() ![]() |
ESmartObjectTagMergingPolicy | Returns the tag merging policy to apply on Activity tags from this definition | |
![]() ![]() |
const USmartObjectBehaviorDefinition * | GetBehaviorDefinition
(
const int32 SlotIndex, |
Retrieves a specific type of behavior definition for a given slot. |
![]() ![]() |
FBox | GetBounds () |
Return bounds encapsulating all slots |
![]() |
FWorldConditionQueryDefinition & | ||
![]() |
FSmartObjectSlotDefinition & | GetMutableSlot
(
const int32 Index |
|
![]() |
TArrayView< FSmartObjectSlotDefinition > | Returns a view on all the slot definitions | |
![]() ![]() |
const FWorldConditionQueryDefinition & | ||
![]() ![]() |
TSubclassOf< USmartObjectSlotValidationFilter > | ||
![]() ![]() |
const FSmartObjectSlotDefinition & | GetSlot
(
const int32 Index |
|
![]() ![]() |
void | GetSlotActivityTags
(
const int32 SlotIndex, |
Fills the provided GameplayTagContainer with the activity tags associated to the slot according to the tag merging policy. |
![]() ![]() |
void | GetSlotActivityTags
(
const FSmartObjectSlotDefinition& SlotDefinition, |
Fills the provided GameplayTagContainer with the activity tags associated to the slot according to the tag merging policy. |
![]() ![]() |
TConstArrayView< FSmartObjectSlotDefinition > | GetSlots () |
|
![]() ![]() |
FTransform | GetSlotWorldTransform
(
const int32 SlotIndex, |
Returns the transform (in world space) of the given slot index. |
![]() ![]() |
const FGameplayTagQuery & | Returns the tag query to run on the user tags provided by a request to accept this definition | |
![]() ![]() |
ESmartObjectTagFilteringPolicy | Returns the tag filtering policy that should be applied on User tags by this definition | |
![]() ![]() |
const USmartObjectWorldConditionSchema * | ||
![]() ![]() |
const TSubclassOf< USmartObjectWorldConditionSchema > & | ||
![]() ![]() |
TOptional< bool > | IsValid () |
Returns result of the last validation if `Validate_ was called; unset otherwise. |
![]() ![]() |
bool | IsValidSlotIndex
(
const int32 SlotIndex |
|
![]() |
void | SetActivityTags
(
const FGameplayTagContainer& InActivityTags |
Sets the list of tags describing the activity associated to this definition |
![]() |
void | SetActivityTagsMergingPolicy
(
const ESmartObjectTagMergingPolicy InActivityTagsMergingPolicy |
Sets the tag merging policy to apply on Activity tags from this definition |
![]() |
void | SetUserTagFilter
(
const FGameplayTagQuery& InUserTagFilter |
Sets the tag query to run on the user tags provided by a request to accept this definition |
![]() |
void | SetUserTagsFilteringPolicy
(
const ESmartObjectTagFilteringPolicy InUserTagsFilteringPolicy |
Sets the tag filtering policy to apply on User tags by this definition |
![]() |
void | ||
![]() ![]() |
bool | Performs validation for the current definition. |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
EDataValidationResult | IsDataValid
(
FDataValidationContext& Context |
Generic function to validate objects during changelist validations, etc. |
![]() ![]() |
void | PostEditChangeChainProperty
(
FPropertyChangedChainEvent& PropertyChangedEvent |
This alternate version of PostEditChange is called when properties inside structs are modified. |
![]() ![]() |
void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |
![]() ![]() |
void | PreSave
(
FObjectPreSaveContext SaveContext |
Presave function. |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
TSoftClassPtr< AActor > | PreviewClass_DEPRECATED | Use ObjectActorClass in PreviewData instead. |
![]() ![]() |
FSoftObjectPath | PreviewMeshPath_DEPRECATED | Use ObjectMeshPath in PreviewData instead. |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const FGameplayTagQuery & | Use FWorldCondition_SmartObjectActorTagQuery or FSmartObjectWorldConditionObjectTagQuery in Preconditions instead. | |
![]() ![]() |
PRAGMA_DISABLE_DEPRECATION_WARNINGSTOptional< FTransform > | GetSlotTransform
(
const FTransform& OwnerTransform, |
Please use GetSlotWorldTransform() instead. |
![]() |
void | SetObjectTagFilter
(
const FGameplayTagQuery& InObjectTagFilter |
Use FWorldCondition_SmartObjectActorTagQuery or FSmartObjectWorldConditionObjectTagQuery in Preconditions instead. |