File tree Expand file tree Collapse file tree 5 files changed +2
-23
lines changed
source/Core/FrameRecorder
Inputs/CBRenderTexture/Engine Expand file tree Collapse file tree 5 files changed +2
-23
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ public abstract class Recorder : ScriptableObject
21
21
{
22
22
double m_OriginalCaptureFrameRate ;
23
23
24
- public abstract List < RecorderInputSetting > DefaultInputs ( ) ;
25
-
26
24
public int recordedFramesCount { get ; set ; }
27
25
28
26
protected List < RecorderInput > m_Inputs ;
Original file line number Diff line number Diff line change @@ -193,14 +193,5 @@ public static RecorderSettings GenerateNewSettingsAsset(UnityEngine.Object paren
193
193
else
194
194
throw new ArgumentException ( "No factory was registered for " + recorderType . Name ) ;
195
195
}
196
-
197
- public static List < RecorderInputSetting > GetRecordersDefaultSourceSettings ( Type recorderType )
198
- {
199
- var recorder = ScriptableObject . CreateInstance ( recorderType ) as Recorder ;
200
- var defautSettings = recorder . DefaultInputs ( ) ;
201
- UnityHelpers . Destroy ( recorder ) ;
202
- return defautSettings ;
203
- }
204
-
205
196
}
206
197
}
Original file line number Diff line number Diff line change 3
3
public class CBRenderTextureInputSettings : InputSettings < CBRenderTextureInput >
4
4
{
5
5
public EImageSource source = EImageSource . GameDisplay ;
6
- public EImageDimension m_RenderSize = EImageDimension . x720p_HD ;
6
+ public EImageDimension m_RenderSize = EImageDimension . Manual ;
7
7
public string m_CameraTag ;
8
8
public RenderTexture m_SourceRTxtr ;
9
9
public bool m_FlipVertical = false ;
Original file line number Diff line number Diff line change @@ -56,15 +56,5 @@ public override void RecordFrame(RecordingSession session)
56
56
57
57
File . WriteAllBytes ( MakeFileName ( session ) , bytes ) ;
58
58
}
59
-
60
- public override List < RecorderInputSetting > DefaultInputs ( )
61
- {
62
- var settings = new List < RecorderInputSetting > ( ) ;
63
- var setting = ScriptableObject . CreateInstance ( typeof ( AdamBeautyInputSettings ) ) as AdamBeautyInputSettings ;
64
-
65
- settings . Add ( setting ) ;
66
- return settings ;
67
- }
68
-
69
59
}
70
60
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public class PNGRecorderSettings : RecorderSettings
20
20
21
21
public override List < RecorderInputSetting > GetDefaultSourcesSettings ( )
22
22
{
23
- return new List < RecorderInputSetting > ( ) { ScriptableObject . CreateInstance < AdamBeautyInputSettings > ( ) } ;
23
+ return new List < RecorderInputSetting > ( ) { ScriptableObject . CreateInstance < CBRenderTextureInputSettings > ( ) } ;
24
24
}
25
25
26
26
public override bool isValid
You can’t perform that action at this time.
0 commit comments