diff --git a/Scripts/Editor/VRMExportUnityPackage.cs b/Scripts/Editor/VRMExportUnityPackage.cs index f4c922b85..0f000732f 100644 --- a/Scripts/Editor/VRMExportUnityPackage.cs +++ b/Scripts/Editor/VRMExportUnityPackage.cs @@ -18,7 +18,7 @@ namespace VRM const string DATE_FORMAT = "yyyyMMdd"; const string PREFIX = "UniVRM"; - static string GetPath() + static string GetPath(string prefix) { var folder = GetDesktop(); if (!Directory.Exists(folder)) @@ -30,7 +30,7 @@ namespace VRM var path = string.Format("{0}/{1}-{2}.unitypackage", folder, - PREFIX, + prefix, VRMVersion.VERSION ).Replace("\\", "/"); @@ -68,8 +68,7 @@ namespace VRM #endif public static void CreateUnityPackage() { - var path = GetPath(); - + var path = GetPath(PREFIX); if (File.Exists(path)) { Debug.LogErrorFormat("{0} is already exists", path); @@ -79,7 +78,16 @@ namespace VRM var files = EnumerateFiles("Assets/VRM") .ToArray(); - AssetDatabase.ExportPackage(files, path, ExportPackageOptions.Interactive); + // 本体 + AssetDatabase.ExportPackage(files + .Where(x => !x.StartsWith("Assets/VRM/_RuntimeLoaderSample/")).ToArray() + , path, ExportPackageOptions.Interactive); + + // サンプル + AssetDatabase.ExportPackage(files + .Where(x => x.StartsWith("Assets/VRM/_RuntimeLoaderSample/")).ToArray() + , GetPath(PREFIX+"-RuntimeLoaderSample"), ExportPackageOptions.Interactive); + Debug.LogFormat("exported: {0}", path); } } diff --git a/Scripts/RuntimeLoader.meta b/Scripts/RuntimeLoader.meta index f46152772..75de22fcf 100644 --- a/Scripts/RuntimeLoader.meta +++ b/Scripts/RuntimeLoader.meta @@ -1,7 +1,7 @@ fileFormatVersion: 2 guid: a0029457c7d957543a48dc39a63380a4 folderAsset: yes -timeCreated: 1520835758 +timeCreated: 1522734361 licenseType: Free DefaultImporter: userData: diff --git a/Scenes.meta b/_RuntimeLoaderSample.meta similarity index 60% rename from Scenes.meta rename to _RuntimeLoaderSample.meta index 8a58b5a55..e8bb1bf84 100644 --- a/Scenes.meta +++ b/_RuntimeLoaderSample.meta @@ -1,10 +1,9 @@ fileFormatVersion: 2 -guid: c58829edf15349648929208fdb1c42ca +guid: 3399903915becdb45b0a9d5ee452b827 folderAsset: yes -timeCreated: 1519303162 +timeCreated: 1522734239 licenseType: Free DefaultImporter: - externalObjects: {} userData: assetBundleName: assetBundleVariant: diff --git a/Scripts/RuntimeLoader/CanvasManager.cs b/_RuntimeLoaderSample/CanvasManager.cs similarity index 100% rename from Scripts/RuntimeLoader/CanvasManager.cs rename to _RuntimeLoaderSample/CanvasManager.cs diff --git a/Scripts/RuntimeLoader/CanvasManager.cs.meta b/_RuntimeLoaderSample/CanvasManager.cs.meta similarity index 100% rename from Scripts/RuntimeLoader/CanvasManager.cs.meta rename to _RuntimeLoaderSample/CanvasManager.cs.meta diff --git a/Scripts/RuntimeLoader/VRMRuntimeLoader.cs b/_RuntimeLoaderSample/VRMRuntimeLoader.cs similarity index 100% rename from Scripts/RuntimeLoader/VRMRuntimeLoader.cs rename to _RuntimeLoaderSample/VRMRuntimeLoader.cs diff --git a/Scripts/RuntimeLoader/VRMRuntimeLoader.cs.meta b/_RuntimeLoaderSample/VRMRuntimeLoader.cs.meta similarity index 100% rename from Scripts/RuntimeLoader/VRMRuntimeLoader.cs.meta rename to _RuntimeLoaderSample/VRMRuntimeLoader.cs.meta diff --git a/Scenes/VRMRuntimeLoaderSample.unity b/_RuntimeLoaderSample/VRMRuntimeLoaderSample.unity similarity index 100% rename from Scenes/VRMRuntimeLoaderSample.unity rename to _RuntimeLoaderSample/VRMRuntimeLoaderSample.unity diff --git a/Scenes/VRMRuntimeLoaderSample.unity.meta b/_RuntimeLoaderSample/VRMRuntimeLoaderSample.unity.meta similarity index 100% rename from Scenes/VRMRuntimeLoaderSample.unity.meta rename to _RuntimeLoaderSample/VRMRuntimeLoaderSample.unity.meta