USmartObjectDefinition

Asset to create sharable SmartObject definitions that can be used by different templates.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

SmartObjectsModule

Header

/Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectDefinition.h

Include

#include "SmartObjectDefinition.h"

Syntax

UCLASS(BlueprintType, Blueprintable, CollapseCategories)
class USmartObjectDefinition : public UDataAsset

Remarks

Asset to create sharable SmartObject definitions that can be used by different templates.

Functions

Name Description

Public function

FSmartObject...

 

DebugAddSlot()

Adds and returns a reference to a defaulted slot (used for testing purposes)

Public function Const

FString

 

Describe()

Provides a description of the definition

Public function Const

const FGamep...

 

GetActivityTags()

Returns the list of tags describing the activity associated to this definition

Public function Const

const USmart...

 

GetBehaviorDefinition

(
    const FSmartObjectSlotIndex& SlotI...,
    const TSubclassOf< USmartObjectBeha...
)

Retrieves a specific type of behavior definition for a given slot.

Public function Const

FBox

 

GetBounds()

Return bounds encapsulating all slots

Public function Const

const FGamep...

 

GetObjectTagFilter()

Returns the tag query to run on the owner tags to accept this definition

Public function Const

TConstArrayV...

 

GetSlots()

Returns a view on all the slot definitions

Public function Const

TOptional< F...

 

GetSlotTransform

(
    const FTransform& OwnerTransform,
    const FSmartObjectSlotIndex SlotInd...
)

Returns the transform (in world space) of the given slot index.

Public function Const

const FGamep...

 

GetUserTagFilter()

Returns the tag query to run on the user tags to accept this definition

Public function Const

TOptional< b...

 

IsValid()

Returns result of the last validation if `Validate_ was called; unset otherwise.

Public function Const

bool

 

Validate()

Performs validation and logs errors if any.