Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectDefinition
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Validate
(
TArray< TPair< EMessageSeverity::Type, FText > >* ErrorsToReport |
Performs validation for the current definition. | SmartObjectDefinition.h | |
| SmartObjectDefinition.h |
Validate(TArray< TPair< EMessageSeverity::Type, FText > > *)
Description
Performs validation for the current definition. The method will return on the first error encountered by default but could go through all validations and report all errors (e.g. when saving the asset errors are reported to the user). An object using an invalid definition will not be registered in the simulation. The result of the validation is stored until next validation and can be retrieved using `IsValid_.
| Name | Validate |
| Type | function |
| Header File | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectDefinition.h |
| Include Path | #include "SmartObjectDefinition.h" |
| Source | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Private/SmartObjectDefinition.cpp |
bool Validate
(
TArray < TPair< EMessageSeverity::Type , FText > > * ErrorsToReport
) const
true if the definition is valid
Parameters
| Name | Remarks |
|---|---|
| ErrorsToReport | Optional list of error messages that could be provided to report them |
Validate(TArray< FText > *)
| Name | Validate |
| Type | function |
| Header File | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectDefinition.h |
| Include Path | #include "SmartObjectDefinition.h" |
| Source | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Private/SmartObjectDefinition.cpp |
bool Validate
(
TArray < FText > * ErrorsToReport
) const