 | UIManagerShow Method (Window, Object, Transform, String, WindowConflictMode) |
Show a window using a prefab.
Can be await-ed upon.
Namespace:
Kit
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntaxpublic static UniTask<Window> Show(
Window prefab,
Object data = null,
Transform parent = null,
string animation = null,
WindowConflictMode conflictMode = WindowConflictMode.ShowNew
)
Request Example
View SourceParameters
- prefab
- Type: Kit.UIWindow
The prefab to use for instantiating. - data (Optional)
- Type: SystemObject
The data to pass to the window. - parent (Optional)
- Type: Transform
The parent transform to attach the window to. Uses a general Canvas and transform by default. - animation (Optional)
- Type: SystemString
The animation state to play when showing. - conflictMode (Optional)
- Type: KitWindowConflictMode
What to do if the window already exists?
Return Value
Type:
UniTaskWindowAn instance of the window.
See Also