Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule
References
| Module | SmartObjectsModule |
| Header | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectDefinitionReference.h |
| Include | #include "SmartObjectDefinitionReference.h" |
Syntax
USTRUCT ()
struct FSmartObjectDefinitionReference
Remarks
Struct to hold reference to a SmartObjectDefinition asset along with values to parameterized it.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FInstancedPropertyBag | Parameters | ||
| TArray< FGuid > | PropertyOverrides | Array of overridden properties. | |
| TObjectPtr< USmartObjectDefinition > | SmartObjectDefinition |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Sync parameters to match the asset if required. | ||
| FInstancedPropertyBag & | |||
| USmartObjectDefinition * | |||
| const FInstancedPropertyBag & | |||
| const USmartObjectDefinition * | |||
| bool | IsPropertyOverridden
(
const FGuid PropertyID |
||
| bool | IsValid () |
||
| bool | Indicates if current parameters are compatible with those available in the selected SmartObject Definition asset. | ||
| bool | SerializeFromMismatchedTag
(
const FPropertyTag& Tag, |
||
| void | SetPropertyOverridden
(
const FGuid PropertyID, |
Sets the override status of specified property by ID. | |
| void | SetSmartObjectDefinition
(
USmartObjectDefinition* NewSmartObjectDefinition |
Sets the SmartObject Definition asset and synchronize parameters. | |
| void | Enforce self parameters to be compatible with those exposed by the selected SmartObject Definition asset. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FSmartObjectDefinitionReference& RHS |
||
| bool | operator==
(
const FSmartObjectDefinitionReference& RHS |