コード例 #1
0
    // 유틸 : 저장경로 얻기
    string GetOutputPath()
    {
        GUILayout.BeginVertical("Box");
        GUILayout.Label("Select Output Path", EditorStyles.boldLabel);
        EditorGUILayout.HelpBox(m_strOutputPath, MessageType.None);

        if (true == GUILayout.Button("Defualt Output Path"))
        {
            m_strOutputPath = SHPath.GetPathToExportAssetBundle();
        }

        if (true == GUILayout.Button("Change Output Path"))
        {
            string strChangePath = EditorUtility.OpenFolderPanel("Select Bundle Save Folder", "", "");
            if (false == string.IsNullOrEmpty(strChangePath))
            {
                m_strOutputPath = strChangePath;
            }
        }

        if (true == GUILayout.Button("Open Output Path"))
        {
            SHUtils.OpenInFileBrowser(m_strOutputPath);
        }

        GUILayout.EndVertical();
        return(m_strOutputPath);
    }
コード例 #2
0
    static void SelectMenu()
    {
        m_pEditorWindow = EditorWindow.GetWindow(typeof(SHEditorAssetBundleMaker));
        m_pEditorWindow.autoRepaintOnSceneChange = true;
        m_pEditorWindow.ShowUtility();

        m_strOutputPath     = SHPath.GetPathToExportAssetBundle();
        m_iSelPlatformType  = 0;
        m_bIsDeleteOriginal = false;
    }
コード例 #3
0
 public static bool PackingAssetBundle(BuildTarget eTarget, eBundlePackType ePackType, bool bIsDelOriginal)
 {
     return(PackingAssetBundle(eTarget, ePackType, bIsDelOriginal, SHPath.GetPathToExportAssetBundle()));
 }
コード例 #4
0
 // 인터페이스 : 번들패킹
 public static bool PackingAssetBundle(BuildTarget eTarget, eBundlePackType ePackType)
 {
     return(PackingAssetBundle(eTarget, ePackType, true, SHPath.GetPathToExportAssetBundle()));
 }