Window Framework for UI Toolkit v2.0.x
GWG.WindowFramework.Editor.ThemePreparationLifecycle Class Referencesealed

Maintains freshness of derived portable values in opted-in theme configurations. More...

Inheritance diagram for GWG.WindowFramework.Editor.ThemePreparationLifecycle:
Collaboration diagram for GWG.WindowFramework.Editor.ThemePreparationLifecycle:

Public Member Functions

void OnPreprocessBuild (BuildReport report)
 Refreshes opted-in configurations for a build.

Static Public Member Functions

static int RefreshConfiguration (WindowFrameThemeData data)
 Refreshes or invalidates derived snapshots without changing selected theme/defaults.

Properties

int callbackOrder [get]
 Preparation occurs before scene serialization for the build.

Static Private Member Functions

static ThemePreparationLifecycle ()
static void OnPlayModeChanged (PlayModeStateChange state)
static void RefreshOptedInConfigurations ()

Detailed Description

Maintains freshness of derived portable values in opted-in theme configurations.

Permanent editor preparation integration, not a test runner. Never enters/exits Play Mode, creates scene objects, edits stylesheet sources or fabricates default values. Failed or legacy preparation clears stale output but does not disable normal theme rendering. Derived records are stored only in existing theme data; no additional shipping configuration asset.

Constructor & Destructor Documentation

◆ ThemePreparationLifecycle()

GWG.WindowFramework.Editor.ThemePreparationLifecycle.ThemePreparationLifecycle ( )
inlinestaticprivate
Here is the call graph for this function:

Member Function Documentation

◆ OnPlayModeChanged()

void GWG.WindowFramework.Editor.ThemePreparationLifecycle.OnPlayModeChanged ( PlayModeStateChange state)
inlinestaticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnPreprocessBuild()

void GWG.WindowFramework.Editor.ThemePreparationLifecycle.OnPreprocessBuild ( BuildReport report)
inline

Refreshes opted-in configurations for a build.

Parameters
reportBuild context provided by Unity.
Here is the call graph for this function:

◆ RefreshConfiguration()

int GWG.WindowFramework.Editor.ThemePreparationLifecycle.RefreshConfiguration ( WindowFrameThemeData data)
inlinestatic

Refreshes or invalidates derived snapshots without changing selected theme/defaults.

Parameters
dataExisting theme configuration, enabled or explicitly prepared by caller.
Returns
Number of successfully prepared 2.0 themes.

Source errors are represented by absent/blocked preparation, not an alternate palette. Writes only derived fields and preserves IDs, user choices, source files and image ownership.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RefreshOptedInConfigurations()

void GWG.WindowFramework.Editor.ThemePreparationLifecycle.RefreshOptedInConfigurations ( )
inlinestaticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

Property Documentation

◆ callbackOrder

int GWG.WindowFramework.Editor.ThemePreparationLifecycle.callbackOrder
get

Preparation occurs before scene serialization for the build.