static void DoBuild() { string version = GetGitVersion(); string name = string.Format("../poly-toolkit-{0}.unitypackage", version); using (var tmp = new TempBuildStamp(version)) { AssetDatabase.ExportPackage( GetFilesToExport(), name, ExportPackageOptions.Recurse); Debug.LogFormat("Done building {0}", name); } }
static void DoBuild() { string version = GetGitVersion(); string name = string.Format("../../tilt-brush-toolkit-UnitySDK-{0}.unitypackage", version); using (var tmp = new TempBuildStamp(version)) { AssetDatabase.ExportPackage( new string[] { "Assets/ThirdParty", "Assets/TiltBrush", }, name, ExportPackageOptions.Recurse); Debug.LogFormat("Done building {0}", name); } }
//[MenuItem("Tilt Brush/Build Package")] static void DoBuild() { string version = GetGitVersion(); string name = string.Format("../../tiltbrushtoolkit-UnitySDK-{0}.unitypackage", version); using (var tmp = new TempBuildStamp(version)) { AssetDatabase.ExportPackage( new string[] { "Assets/ThirdParty", "Assets/TiltBrush", "Assets/TiltBrushExamples" }, name, ExportPackageOptions.Recurse | ExportPackageOptions.IncludeDependencies | // not sure about this one? ExportPackageOptions.IncludeLibraryAssets); Debug.LogFormat("Done building {0}", name); } }