DemoControl is a MonoBehaviour class used exclusively for the demo scene of the Window Framework. It demonstrates the initialization and usage of various window types, including the startup menu, demo control window, and escape menu functionality.
|
| void | Awake () |
| WindowFrame | CreateStartupMenuExample () |
| | Creates a fullscreen startup menu window with custom styling and content. This window serves as an example of how to use the Window Framework for creating menus.
|
| void | OnDestroy () |
| void | Start () |
| | Unity's Start method is called when the script is first initialized. It sets up the demo scene by removing unnecessary elements, creating the demo control window, and adding the startup menu to the UI hierarchy.
|
| void | Update () |
| | Unity's Update method is called once per frame. It listens for the Escape key press to toggle the Example EscapeMenuWindow.
|
◆ Awake()
| void GWG.WindowFramework.Demo.DemoControl.Awake |
( |
| ) |
|
|
private |
◆ CreateExampleWindow()
| void GWG.WindowFramework.Demo.DemoControl.CreateExampleWindow |
( |
| ) |
|
◆ CreateStartupMenuExample()
| WindowFrame GWG.WindowFramework.Demo.DemoControl.CreateStartupMenuExample |
( |
| ) |
|
|
private |
- Returns
- A WindowFrame object representing the startup menu.
◆ OnDemoClicked()
| void GWG.WindowFramework.Demo.DemoControl.OnDemoClicked |
( |
| ) |
|
◆ OnDestroy()
| void GWG.WindowFramework.Demo.DemoControl.OnDestroy |
( |
| ) |
|
|
private |
◆ OnHelpClicked()
| void GWG.WindowFramework.Demo.DemoControl.OnHelpClicked |
( |
| ) |
|
◆ OnSettingsClicked()
| void GWG.WindowFramework.Demo.DemoControl.OnSettingsClicked |
( |
| ) |
|
◆ Start()
| void GWG.WindowFramework.Demo.DemoControl.Start |
( |
| ) |
|
|
private |
◆ Update()
| void GWG.WindowFramework.Demo.DemoControl.Update |
( |
| ) |
|
|
private |
◆ _demoPageData
| DemoPageData GWG.WindowFramework.Demo.DemoControl._demoPageData |
|
private |
◆ _escapeAction
| InputAction GWG.WindowFramework.Demo.DemoControl._escapeAction |
|
private |
◆ rootElement
| VisualElement GWG.WindowFramework.Demo.DemoControl.rootElement |
|
private |
◆ Instance
| DemoControl GWG.WindowFramework.Demo.DemoControl.Instance |
|
staticgetprivate set |