Skip to content

Commit 0771a8b

Browse files
committed
d
1 parent 7d5de70 commit 0771a8b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Assets/Editor/Builder.cs

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using UnityEditor;
2+
3+
namespace Editor
4+
{
5+
public static class Builder
6+
{
7+
public static void BuildPackage()
8+
{
9+
// Define which assets to include in the package
10+
string[] assets = new string[]
11+
{
12+
"Assets",
13+
"Packages/manifest.json",
14+
"Packages/packages-lock.json"
15+
};
16+
17+
// Build the package
18+
AssetDatabase.ExportPackage(
19+
assets,
20+
"Build/dojo.unitypackage",
21+
ExportPackageOptions.Recurse | ExportPackageOptions.IncludeDependencies
22+
);
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)