EInvalidateWidgetReason

The different types of invalidation that are possible for a widget.

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Widgets/InvalidateWidgetReason.h

Include

#include "Widgets/InvalidateWidgetReason.h"

Syntax

enum EInvalidateWidgetReason
{
    None                   = 0,
    Layout                 = 1 << 0,
    Paint                  = 1 << 1,
    Volatility             = 1 << 2,
    ChildOrder             = 1 << 3,
    RenderTransform        = 1 << 4,
    Visibility             = 1 << 5,
    PaintAndVolatility     = Paint | Volatility,
    LayoutAndVolatility    = Layout | Volatility,
}

Values

Name

Description

None

Layout

Use Layout invalidation if your widget needs to change desired size.

Paint

Use when the painting of widget has been altered, but nothing affecting sizing.

Volatility

Use if just the volatility of the widget has been adjusted.

ChildOrder

A child was added or removed. (this implies layout)

RenderTransform

A Widgets render transform changed

Visibility

Changing visibility (this implies layout)

PaintAndVolatility

Use Paint invalidation if you're changing a normal property involving painting or sizing.

LayoutAndVolatility

Use Layout invalidation if you're changing a normal property involving painting or sizing.

Remarks

The different types of invalidation that are possible for a widget.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback