Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UUIComponent
Description
Called during asset validation to validate this component in the context of its owner widget. Override to perform owner-aware validation. Calls IsDataValid by default.
| Name | IsDataValidForOwner |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Extensions/UIComponent.h |
| Include Path | #include "Extensions/UIComponent.h" |
| Source | /Engine/Source/Runtime/UMG/Private/Extensions/UIComponent.cpp |
virtual EDataValidationResult IsDataValidForOwner
(
const UWidget * OwnerWidget,
FDataValidationContext & Context
) const
Parameters
| Name | Remarks |
|---|---|
| OwnerWidget | The widget this component is attached to, or nullptr if it could not be resolved. |
| Context | The validation context to add errors/warnings to. |