Click or drag to resize

UIManagerShow Method (String, Object, Transform, String, WindowConflictMode)

Show a window from a path.

Can be await-ed upon.

Namespace:  Kit
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public static UniTask<Window> Show(
	string path,
	Object data = null,
	Transform parent = null,
	string animation = null,
	WindowConflictMode conflictMode = WindowConflictMode.ShowNew
)
Request Example View Source

Parameters

path
Type: SystemString
The path to window (should be in a Resources folder).
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: UniTaskWindow
An instance of the window.
See Also