We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b01044 commit 38a3711Copy full SHA for 38a3711
Assets/Editor/ExportUFXPackage.cs
@@ -1,6 +1,7 @@
1
using System.Collections;
2
using System.Collections.Generic;
3
using System.IO;
4
+using System;
5
using UnityEngine;
6
using UnityEditor;
7
@@ -16,12 +17,12 @@ static void ExportPackage()
16
17
"Assets/UXF"
18
};
19
-
20
+ DateTime dt = DateTime.Now;
21
+ string date = dt.ToString("yy_MM_dd");
22
23
if (!Directory.Exists("Package"))
24
Directory.CreateDirectory("Package");
- string path = "Package/UXF.unitypackage";
25
+ string path = string.Format("Package/UXF_{0}.unitypackage", date);
26
27
ExportPackageOptions options = ExportPackageOptions.Recurse;
28
0 commit comments