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 (BlueprintType, Blueprintable, CollapseCategories)
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 | |
|---|---|---|---|
| bool | AddParameterAndBindingFromPropertyPath
(
const FPropertyBindingPath& TargetPath |
||
| void | AddPropertyBinding
(
const FPropertyBindingPath& SourcePath, |
||
| bool | ArePropertiesCompatible
(
const FProperty* SourceProperty, |
||
| FSmartObjectSlotDefinition & | DebugAddSlot () |
Adds and returns a reference to a defaulted slot (used for testing purposes) | |
| bool | FindSlotAndDefinitionDataIndexByID
(
const FGuid ID, |
Returns slot and definition data indices the ID represents. | |
| int32 | FindSlotByID
(
const FGuid ID |
||
| void | GetAccessibleStructs
(
const FGuid TargetStructID, |
||
| 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 | ||
| USmartObjectDefinition * | GetAssetVariation
(
const FInstancedPropertyBag& Parameters |
Returns a variation of this asset with specified parameters applied. | |
| const USmartObjectBehaviorDefinition * | GetBehaviorDefinition
(
const int32 SlotIndex, |
Retrieves a specific type of behavior definition for a given slot. | |
| FBox | GetBounds () |
Return bounds encapsulating all slots | |
| FSmartObjectDefinitionDataHandle | GetDataHandleByID
(
const FGuid StructID |
||
| FGuid | |||
| bool | GetDataViewByID
(
const FGuid StructID, |
||
| const FInstancedPropertyBag & | |||
| const T & | Returns a reference to the definition data of the specified type. | ||
| const T * | Returns a pointer to the definition data of the specified type. | ||
| FWorldConditionQueryDefinition & | |||
| FSmartObjectSlotDefinition & | GetMutableSlot
(
const int32 Index |
||
| TArrayView< FSmartObjectSlotDefinition > | Returns a view on all the slot definitions | ||
| const FWorldConditionQueryDefinition & | |||
| TSubclassOf< USmartObjectSlotValidationFilter > | |||
| const FPropertyBindingPath * | GetPropertyBindingSource
(
const FPropertyBindingPath& TargetPath |
||
| const FSmartObjectSlotDefinition & | |||
| void | GetSlotActivityTags
(
const FSmartObjectSlotDefinition& SlotDefinition, |
Fills the provided GameplayTagContainer with the activity tags associated to the slot according to the tag merging policy. | |
| void | GetSlotActivityTags
(
const int32 SlotIndex, |
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. | |
| bool | GetStructDescByID
(
const FGuid StructID, |
||
| 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 > & | |||
| bool | Indicates if 'Validate' was called. | ||
| bool | Indicates the result of the last validation if 'Validate' was called. | ||
| TOptional< bool > | IsValid () |
Returns result of the last validation if `Validate_ was called; unset otherwise. | |
| bool | IsValidSlotIndex
(
const int32 SlotIndex |
||
| const TArray< FSmartObjectSlotDefinition > & | K2_GetSlots () |
||
| void | RemovePropertyBindings
(
const FPropertyBindingPath& TargetPath |
||
| 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 | |
| bool | UpdateAndValidatePath
(
FPropertyBindingPath& Path |
||
| void | |||
| void | |||
| bool | Performs validation for the current definition. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | CollectSaveOverrides
(
FObjectCollectSaveOverridesContext SaveContext |
Collect any save override state. | |
| void | GetAssetRegistryTags
(
FAssetRegistryTagsContext Context |
Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects | |
| 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 | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. | ||
| 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 | Actor class used for previewing the definition in the asset editor. | |
| FSoftObjectPath | PreviewMeshPath_DEPRECATED | Path of the static mesh used for previewing the definition in the asset editor. |