1
- using System . IO ;
1
+ using System ;
2
+ using System . IO ;
2
3
using UnityEngine ;
3
4
4
5
namespace UnityEditor . FrameRecorder
5
6
{
6
7
static class FRPackager
7
8
{
8
9
const string k_PackageName = "Recorder" ;
9
-
10
+
10
11
public static string GetFrameRecorderRootPath ( )
11
12
{
12
13
return Application . dataPath + "/Recorder/" ;
@@ -19,9 +20,12 @@ static void GeneratePackage()
19
20
20
21
string [ ] files = new string [ ]
21
22
{
22
- Path . Combine ( rootPath , "Framework/Core" ) ,
23
- Path . Combine ( rootPath , "Framework/Recorders" ) ,
24
- Path . Combine ( rootPath , "Framework/Packager/Editor" ) ,
23
+ Path . Combine ( rootPath , "Framework.meta" ) ,
24
+ Path . Combine ( rootPath , "Framework/FrameRecorder.meta" ) ,
25
+ Path . Combine ( rootPath , "Framework/FrameRecorder/Core" ) ,
26
+ Path . Combine ( rootPath , "Framework/FrameRecorder/Inputs" ) ,
27
+ Path . Combine ( rootPath , "Framework/FrameRecorder/Recorders" ) ,
28
+ Path . Combine ( rootPath , "Framework/FrameRecorder/Packager/Editor" ) ,
25
29
} ;
26
30
var destFile = k_PackageName + ".unitypackage" ;
27
31
AssetDatabase . ExportPackage ( files , destFile , ExportPackageOptions . Recurse ) ;
@@ -32,15 +36,17 @@ static void GeneratePackage()
32
36
static void GeneratePackageFull ( )
33
37
{
34
38
var rootPath = FRPackagerPaths . GetFrameRecorderRootPath ( ) ;
35
-
36
- MovieRecorderPackager . GeneratePackage ( ) ;
39
+ System . Type . GetType ( "MovieRecorderPackager" ) . GetMethod ( "GeneratePackage" ) . Invoke ( null , null ) ;
37
40
AssetDatabase . Refresh ( ) ;
38
41
39
42
var files = new [ ]
40
43
{
41
- Path . Combine ( rootPath , "Framework/Core" ) ,
42
- Path . Combine ( rootPath , "Framework/Recorders" ) ,
43
- Path . Combine ( rootPath , "Framework/Packager/Editor" ) ,
44
+ Path . Combine ( rootPath , "Framework.meta" ) ,
45
+ Path . Combine ( rootPath , "Framework/FrameRecorder.meta" ) ,
46
+ Path . Combine ( rootPath , "Framework/FrameRecorder/Core" ) ,
47
+ Path . Combine ( rootPath , "Framework/FrameRecorder/Inputs" ) ,
48
+ Path . Combine ( rootPath , "Framework/FrameRecorder/Recorders" ) ,
49
+ Path . Combine ( rootPath , "Framework/FrameRecorder/Packager/Editor" ) ,
44
50
Path . Combine ( rootPath , "Extensions/UTJ" ) ,
45
51
Path . Combine ( rootPath , "Extensions/FrameCapturerRecorder" ) ,
46
52
Path . Combine ( rootPath , "Extensions/MovieRecorder/Packaging" ) ,
0 commit comments