Skip to content

Commit 38a3711

Browse files
committed
developer editor tools
1 parent 8b01044 commit 38a3711

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Assets/Editor/ExportUFXPackage.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections;
22
using System.Collections.Generic;
33
using System.IO;
4+
using System;
45
using UnityEngine;
56
using UnityEditor;
67

@@ -16,12 +17,12 @@ static void ExportPackage()
1617
"Assets/UXF"
1718
};
1819

19-
20+
DateTime dt = DateTime.Now;
21+
string date = dt.ToString("yy_MM_dd");
2022

2123
if (!Directory.Exists("Package"))
2224
Directory.CreateDirectory("Package");
23-
string path = "Package/UXF.unitypackage";
24-
25+
string path = string.Format("Package/UXF_{0}.unitypackage", date);
2526

2627
ExportPackageOptions options = ExportPackageOptions.Recurse;
2728

0 commit comments

Comments
 (0)