コード例 #1
0
ファイル: EditorLayout.cs プロジェクト: isoundy000/ETGame
        public static string ObjectFieldOpenFolderPanel(string label, string buttonText, string defaultPath)
        {
            if (!EditorLayout.ObjectFieldButton(label, buttonText))
            {
                return((string)null);
            }
            string str = defaultPath ?? "Assets/";

            if (!Directory.Exists(str))
            {
                str = "Assets/";
            }
            return(EditorUtility.OpenFolderPanel(label, str, string.Empty).Replace(Directory.GetCurrentDirectory() + "/", string.Empty));
        }
コード例 #2
0
ファイル: EditorLayout.cs プロジェクト: isoundy000/ETGame
 public static bool Foldout(bool foldout, string content, int leftMargin = 11)
 {
     return(EditorLayout.Foldout(foldout, content, EditorStyles.foldout, leftMargin));
 }
コード例 #3
0
ファイル: EditorLayout.cs プロジェクト: isoundy000/ETGame
 public static bool MiniButtonRight(string c)
 {
     return(EditorLayout.miniButton(c, EditorStyles.miniButtonRight));
 }