Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectDefinition
References
| Module | SmartObjectsModule |
| Header | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectDefinition.h |
| Include | #include "SmartObjectDefinition.h" |
| Source | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Private/SmartObjectDefinition.cpp |
bool Validate
(
TArray < FText > * ErrorsToReport
) const
Remarks
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_. true if the definition is valid
Parameters
| Name | Description |
|---|---|
| ErrorsToReport | Optional list of error messages that could be provided to report them |