Class UIToolkitAppBuilder<T>
A MonoBehaviour that can be used to build and host an app in a UIDocument.
This class is intended to be used as a base class for a MonoBehaviour that is attached to a GameObject in a scene.Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.AppUI.MVVM
Assembly: solution.dll
Syntax
public class UIToolkitAppBuilder<T> : MonoBehaviour where T : App
Type Parameters
Name | Description |
---|---|
T | The type of the app to build. It is expected that this type is a subclass of App. |
Fields
uiDocument
The UIDocument to host the app in.
Declaration
[Tooltip("The UIDocument to host the app in.")]
public UIDocument uiDocument
Field Value
Type | Description |
---|---|
UIDocument |
Methods
OnAppInitialized(T)
Called when the app has been initialized.
Declaration
protected virtual void OnAppInitialized(T app)
Parameters
Type | Name | Description |
---|---|---|
T | app | The app that was initialized. |
OnAppShuttingDown(T)
Called when the app is shutting down.
Declaration
protected virtual void OnAppShuttingDown(T app)
Parameters
Type | Name | Description |
---|---|---|
T | app | The app that is shutting down. |
OnConfiguringApp(AppBuilder)
Called when the app builder is being configured.
Declaration
protected virtual void OnConfiguringApp(AppBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
AppBuilder | builder | The app builder. |