Skip to content

Commit fb03191

Browse files
committed
packaging now attempts to package movie recorder in full mode.
1 parent 5c98790 commit fb03191

File tree

4 files changed

+19
-12
lines changed

4 files changed

+19
-12
lines changed

source/FrameRecorder/Inputs/CBRenderTexture/Engine/CBRenderTextureInput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public Shader CopyShader
4646
{
4747
if (m_shCopy == null)
4848
{
49-
m_shCopy = Shader.Find("Hidden/UTJ/FrameCapturer/CopyFrameBuffer");
49+
m_shCopy = Shader.Find("Hidden/FrameRecorder/CopyFrameBuffer");
5050
}
5151
return m_shCopy;
5252
}

source/FrameRecorder/Inputs/CBRenderTexture/Shaders/CopyFrameBuffer.shader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Shader "Hidden/UTJ/FrameCapturer/CopyFrameBuffer" {
1+
Shader "Hidden/FrameRecorder/CopyFrameBuffer" {
22

33
CGINCLUDE
44
#include "UnityCG.cginc"

source/FrameRecorder/Inputs/CBRenderTexture/Shaders/CopyFrameBuffer.shader.meta

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/FrameRecorder/Packager/Private/Editor/FRPackager.cs

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
using System.IO;
1+
using System;
2+
using System.IO;
23
using UnityEngine;
34

45
namespace UnityEditor.FrameRecorder
56
{
67
static class FRPackager
78
{
89
const string k_PackageName = "Recorder";
9-
10+
1011
public static string GetFrameRecorderRootPath()
1112
{
1213
return Application.dataPath + "/Recorder/";
@@ -19,9 +20,12 @@ static void GeneratePackage()
1920

2021
string[] files = new string[]
2122
{
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"),
2529
};
2630
var destFile = k_PackageName + ".unitypackage";
2731
AssetDatabase.ExportPackage(files, destFile, ExportPackageOptions.Recurse);
@@ -32,15 +36,17 @@ static void GeneratePackage()
3236
static void GeneratePackageFull()
3337
{
3438
var rootPath = FRPackagerPaths.GetFrameRecorderRootPath();
35-
36-
MovieRecorderPackager.GeneratePackage();
39+
System.Type.GetType("MovieRecorderPackager").GetMethod("GeneratePackage").Invoke(null, null);
3740
AssetDatabase.Refresh();
3841

3942
var files = new []
4043
{
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" ),
4450
Path.Combine(rootPath, "Extensions/UTJ" ),
4551
Path.Combine(rootPath, "Extensions/FrameCapturerRecorder" ),
4652
Path.Combine(rootPath, "Extensions/MovieRecorder/Packaging" ),

0 commit comments

Comments
 (0)