Exemple #1
0
        static void MenuDoSelectMaterial()
        {
            SelectMaterial instance = EditorToolbarLoader.GetInstance <SelectMaterial>();

            if (instance != null)
            {
                UnityEditor.ProBuilder.EditorUtility.ShowNotification(instance.DoAction().notification);
            }
        }
Exemple #2
0
        static bool MenuVerifySelectMaterial()
        {
            SelectMaterial instance = EditorToolbarLoader.GetInstance <SelectMaterial>();

            return(instance != null && instance.enabled);
        }
Exemple #3
0
 private void Awake()
 {
     _selectMaterial  = GetComponent <SelectMaterial>();
     _pillInsert      = GetComponent <PillInsert>();
     _bottleMouseDrag = GetComponent <BottleMouseDrag>();
 }