// 유틸 : 저장경로 얻기 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); }
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; }
public static bool PackingAssetBundle(BuildTarget eTarget, eBundlePackType ePackType, bool bIsDelOriginal) { return(PackingAssetBundle(eTarget, ePackType, bIsDelOriginal, SHPath.GetPathToExportAssetBundle())); }
// 인터페이스 : 번들패킹 public static bool PackingAssetBundle(BuildTarget eTarget, eBundlePackType ePackType) { return(PackingAssetBundle(eTarget, ePackType, true, SHPath.GetPathToExportAssetBundle())); }