Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule
Struct to hold reference to a SmartObjectDefinition asset along with values to parameterized it.
| Name | FSmartObjectDefinitionReference |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectDefinitionReference.h |
| Include Path | #include "SmartObjectDefinitionReference.h" |
Syntax
USTRUCT ()
struct FSmartObjectDefinitionReference
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSmartObjectDefinitionReference
(
const USmartObjectDefinition* Definition |
SmartObjectDefinitionReference.h | ||
| SmartObjectDefinitionReference.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ConditionallySyncParameters() |
Sync parameters to match the asset if required. | SmartObjectDefinitionReference.h | |
| SmartObjectDefinitionReference.h | |||
USmartObjectDefinition * GetAssetVariation
(
UWorld* World |
Returns a variation of the USmartObjectDefinition based on the parameters defined in the reference. | SmartObjectDefinitionReference.h | |
FInstancedPropertyBag & GetMutableParameters() |
SmartObjectDefinitionReference.h | ||
USmartObjectDefinition * GetMutableSmartObjectDefinition() |
SmartObjectDefinitionReference.h | ||
const FInstancedPropertyBag & GetParameters() |
SmartObjectDefinitionReference.h | ||
const USmartObjectDefinition * GetSmartObjectDefinition() |
SmartObjectDefinitionReference.h | ||
bool IsPropertyOverridden
(
const FGuid PropertyID |
SmartObjectDefinitionReference.h | ||
bool IsValid() |
SmartObjectDefinitionReference.h | ||
bool RequiresParametersSync() |
Indicates if current parameters are compatible with those available in the selected SmartObject Definition asset. | SmartObjectDefinitionReference.h | |
bool SerializeFromMismatchedTag
(
const FPropertyTag& Tag, |
SmartObjectDefinitionReference.h | ||
void SetPropertyOverridden
(
const FGuid PropertyID, |
Sets the override status of specified property by ID. | SmartObjectDefinitionReference.h | |
void SetSmartObjectDefinition
(
USmartObjectDefinition* NewSmartObjectDefinition |
Sets the SmartObject Definition asset and synchronize parameters. | SmartObjectDefinitionReference.h | |
void SyncParameters() |
Enforce self parameters to be compatible with those exposed by the selected SmartObject Definition asset. | SmartObjectDefinitionReference.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FSmartObjectDefinitionReference& RHS |
SmartObjectDefinitionReference.h | ||
bool operator==
(
const FSmartObjectDefinitionReference& RHS |
SmartObjectDefinitionReference.h |