Window Framework for UI Toolkit v2.0.x
GWG.WindowFramework.Demo.DemoPageData Class Reference

Demo-only ScriptableObject holding ordered UXML page references and an optional assigned changelog. More...

Inheritance diagram for GWG.WindowFramework.Demo.DemoPageData:
Collaboration diagram for GWG.WindowFramework.Demo.DemoPageData:

Public Member Functions

void AddPage (DemoPages page)
 Appends the supplied record to the current list without validating or saving it.
void ClearPages ()
 Empties the initialized page list; referenced Unity assets remain untouched.
void RemovePage (DemoPages page)
 Removes the matching record if present; does not destroy its referenced assets.

Data Fields

List< DemoPages > pages
 Ordered configured demo pages; callers must initialize the list before use.
string version
 Demo display version string, not the package's authoritative release version.

Properties

TextAsset ChangeLog [get, set]
 Gets or assigns the demo changelog text asset; no automatic lookup or download.
string ChangLogContents [get]
 Returns assigned changelog text using the existing historical property spelling.

Private Member Functions

void OnValidate ()

Private Attributes

TextAsset changeLog

Detailed Description

Demo-only ScriptableObject holding ordered UXML page references and an optional assigned changelog.

Initialize pages before mutating/querying it. Add/remove/clear operations only change the in-memory list; authoring code must mark dirty/save through Unity editor APIs. No remote download, page validation, localization or generated Doxygen content is implemented here.

Member Function Documentation

◆ AddPage()

void GWG.WindowFramework.Demo.DemoPageData.AddPage ( DemoPages page)
inline

Appends the supplied record to the current list without validating or saving it.

Parameters
pagePage record; caller is responsible for valid asset references.

◆ ClearPages()

void GWG.WindowFramework.Demo.DemoPageData.ClearPages ( )
inline

Empties the initialized page list; referenced Unity assets remain untouched.

◆ OnValidate()

void GWG.WindowFramework.Demo.DemoPageData.OnValidate ( )
inlineprivate

◆ RemovePage()

void GWG.WindowFramework.Demo.DemoPageData.RemovePage ( DemoPages page)
inline

Removes the matching record if present; does not destroy its referenced assets.

Parameters
pageRecord to remove from the initialized list.

Field Documentation

◆ changeLog

TextAsset GWG.WindowFramework.Demo.DemoPageData.changeLog
private

◆ pages

List<DemoPages> GWG.WindowFramework.Demo.DemoPageData.pages

Ordered configured demo pages; callers must initialize the list before use.

◆ version

string GWG.WindowFramework.Demo.DemoPageData.version

Demo display version string, not the package's authoritative release version.

Property Documentation

◆ ChangeLog

TextAsset GWG.WindowFramework.Demo.DemoPageData.ChangeLog
getset

Gets or assigns the demo changelog text asset; no automatic lookup or download.

◆ ChangLogContents

string GWG.WindowFramework.Demo.DemoPageData.ChangLogContents
get

Returns assigned changelog text using the existing historical property spelling.

Requires ChangeLog to be nonnull; does not supply empty fallback text.