Method InstantiateMenuUI
InstantiateMenuUI(IUsesInstantiateMenuUI, Transform, IMenu)
Instantiate custom menu UI on a proxy
Declaration
public static GameObject InstantiateMenuUI(this IUsesInstantiateMenuUI user, Transform rayOrigin, IMenu menuPrefab)
Parameters
Type | Name | Description |
---|---|---|
IUsesInstantiateMenuUI | user | The functionality user |
Transform | rayOrigin | The ray origin of the proxy that this menu is being instantiated from |
IMenu | menuPrefab | The prefab (with an IMenu component) to instantiate |
Returns
Type | Description |
---|---|
GameObject | The instantiated object |