Exemplo n.º 1
0
        public static void MenuCreatePropertyDrawer()
        {
            //Try to grab the first instance of Monoscript in our selection
            var script = Selection.objects.FirstOrDefault <Object>(t => { return(t.GetType() == typeof(MonoScript)); }) as MonoScript;

            if (script != null)
            {
                JiffyEditor.CreateEditor(script, GeneratorTypes.PropertyDrawer);
            }
            else
            {
                EditorGUIUtilityEx.ShowTypeSerachWindow(OnTypeForProperyDrawerSelected, GeneratorTypes.PropertyDrawer);
            }
        }
Exemplo n.º 2
0
 public static void ContextCreatePropertyDrawer(MenuCommand cmd)
 {
     EditorGUIUtilityEx.ShowTypeSerachWindow(OnTypeForProperyDrawerSelected, GeneratorTypes.PropertyDrawer);
 }
Exemplo n.º 3
0
 public static void ContextCreateCustomEditor(MenuCommand cmd)
 {
     EditorGUIUtilityEx.ShowTypeSerachWindow(OnTypeForEditorSelected, GeneratorTypes.CustomEditor);
 }