示例#1
0
        /// <summary>
        /// FBX参照フォルダとプレハブ出力フォルダを確認するページ
        /// </summary>
        private static void FolderConfirmPage()
        {
            EditorGUILayout.LabelField("対象フォルダ確認");
            EditorGUILayout.HelpBox("FBX格納フォルダ" + FbxFolderPath, MessageType.None);
            EditorGUILayout.HelpBox("Prefab保存先フォルダ" + PrefabFolderPath, MessageType.None);

            GUILayout.FlexibleSpace();

            EditorGUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();
            if (GUILayout.Button("進む", GUILayout.Width(ButtonWidth)))
            {
                // 検索
                _searchList = FbxToPrefabConverter.GetFbxPathList(FbxFolderPath, PrefabFolderPath);
                SwitchPage(PageType.Select);
            }
            EditorGUILayout.EndHorizontal();
        }
示例#2
0
        /// <summary>
        /// 選択したFBXを確認するページ
        /// </summary>
        private static void SelectingConfirmPage()
        {
            EditorGUILayout.HelpBox("対象FBX確認", MessageType.Info);

            EditorGUILayout.BeginVertical(GUI.skin.box);
            _scrollPos = EditorGUILayout.BeginScrollView(_scrollPos, GUI.skin.scrollView);
            foreach (FbxSearchResult searchData in _searchList)
            {
                if (searchData.IsTarget)
                {
                    EditorGUILayout.BeginHorizontal();
                    GUILayout.Label(searchData.Path);
                    if (searchData.IsNew)
                    {
                        GUILayout.FlexibleSpace();
                        GUILayout.Label(NewIconTexture);
                    }
                    EditorGUILayout.EndHorizontal();
                }
            }
            EditorGUILayout.EndScrollView();
            EditorGUILayout.EndVertical();

            GUILayout.FlexibleSpace();

            EditorGUILayout.BeginHorizontal();
            if (GUILayout.Button("戻る", GUILayout.Width(ButtonWidth)))
            {
                SwitchPage(PageType.Select);
            }
            GUILayout.FlexibleSpace();
            if (GUILayout.Button("次へ", GUILayout.Width(ButtonWidth)))
            {
                // プレハブ化処理
                FbxToPrefabConverter.FbxToPrefab(_searchList, PrefabFolderPath);
                SwitchPage(PageType.Complete);
            }
            EditorGUILayout.EndHorizontal();
        }