Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
UIContextMenuManager.cs
Go to the documentation of this file.
1using UnityEngine;
2
3public class UIContextMenuManager : MonoBehaviour
4{
5 public Canvas canvas;
6
8
10
11 public bool showMenuOnRightClick = true;
12
13 public bool autoClose;
14
15 public bool isActive
16 {
17 get
18 {
19 if (currentMenu != null)
20 {
22 }
23 return false;
24 }
25 }
26
27 private void Awake()
28 {
29 Instance = this;
30 }
31
32 public UIContextMenu Create(string menuName = "ContextMenu", bool destroyOnHide = true)
33 {
34 if ((bool)currentMenu)
35 {
37 }
38 currentMenu = Util.Instantiate<UIContextMenu>(menuName, base.transform);
39 currentMenu.destroyOnHide = destroyOnHide;
40 if ((bool)currentMenu.logo)
41 {
42 currentMenu.logo.SetActive(enable: true);
43 }
44 return currentMenu;
45 }
46}
UIContextMenu Create(string menuName="ContextMenu", bool destroyOnHide=true)
static UIContextMenuManager Instance
Transform logo