File tree Expand file tree Collapse file tree 4 files changed +9
-12
lines changed
source/Core/FrameRecorder Expand file tree Collapse file tree 4 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ namespace UnityEngine.FrameRecorder
4
4
{
5
5
public abstract class RecorderInputSetting : ScriptableObject
6
6
{
7
- public abstract Type sourceType { get ; }
7
+ public abstract Type inputType { get ; }
8
8
}
9
9
10
- public class InputSettings < TSource > : RecorderInputSetting
10
+ public class InputSettings < TInput > : RecorderInputSetting
11
11
{
12
- public override Type sourceType
12
+ public override Type inputType
13
13
{
14
- get { return typeof ( TSource ) ; }
14
+ get { return typeof ( TInput ) ; }
15
15
}
16
16
}
17
17
}
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public virtual bool BeginRecording(RecordingSession session)
58
58
m_Sources = new List < RecorderInput > ( ) ;
59
59
foreach ( var sourceSettings in settings . m_SourceSettings )
60
60
{
61
- var source = Activator . CreateInstance ( sourceSettings . sourceType ) as RecorderInput ;
61
+ var source = Activator . CreateInstance ( sourceSettings . inputType ) as RecorderInput ;
62
62
source . settings = sourceSettings ;
63
63
m_Sources . Add ( source ) ;
64
64
}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public enum EImageSource
10
10
SceneView = 2 ,
11
11
MainCamera = 4 ,
12
12
TaggedCamera = 8 ,
13
- RenderTexture = 16
13
+ RenderTexture = 16 ,
14
14
}
15
15
16
16
public enum FrameRateMode
Original file line number Diff line number Diff line change @@ -5,12 +5,9 @@ namespace UnityEngine.FrameRecorder.Input
5
5
{
6
6
public class AdamBeautyInput : RenderTextureInput
7
7
{
8
- [ HideInInspector ]
9
- public Shader superShader ;
10
- [ HideInInspector ]
11
- public Shader accumulateShader ;
12
- [ HideInInspector ]
13
- public Shader normalizeShader ;
8
+ Shader superShader ;
9
+ Shader accumulateShader ;
10
+ Shader normalizeShader ;
14
11
15
12
RenderTexture m_renderRT ;
16
13
RenderTexture [ ] m_accumulateRTs = new RenderTexture [ 2 ] ;
You can’t perform that action at this time.
0 commit comments