File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Inputs/CBRenderTexture/Editor Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ public abstract class RecorderEditor : Editor
15
15
SerializedProperty m_StartTime ;
16
16
SerializedProperty m_EndTime ;
17
17
SerializedProperty m_SynchFrameRate ;
18
+ SerializedProperty m_CaptureEveryNthFrame ;
18
19
19
20
protected virtual void OnEnable ( )
20
21
{
@@ -31,6 +32,7 @@ protected virtual void OnEnable()
31
32
m_StartTime = pf . Find ( x => x . m_StartTime ) ;
32
33
m_EndTime = pf . Find ( x => x . m_EndTime ) ;
33
34
m_SynchFrameRate = pf . Find ( x => x . m_SynchFrameRate ) ;
35
+ m_CaptureEveryNthFrame = pf . Find ( x => x . m_CaptureEveryNthFrame ) ;
34
36
}
35
37
}
36
38
@@ -130,7 +132,7 @@ protected virtual void OnInputGui()
130
132
131
133
protected virtual void OnOutputGui ( )
132
134
{
133
- EditorGUILayout . PropertyField ( serializedObject . FindProperty < RecorderSettings > ( x => x . m_CaptureEveryNthFrame ) , new GUIContent ( "Every n'th frame" ) ) ;
135
+ EditorGUILayout . PropertyField ( m_CaptureEveryNthFrame , new GUIContent ( "Every n'th frame" ) ) ;
134
136
}
135
137
136
138
protected virtual void OnEncodingGui ( )
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ public class CBRenderTextureInputSettingsEditor : Editor
13
13
SerializedProperty m_CameraTag ;
14
14
SerializedProperty m_RenderSize ;
15
15
SerializedProperty m_RenderAspect ;
16
+ SerializedProperty m_FlipVertically ;
16
17
17
18
protected void OnEnable ( )
18
19
{
@@ -24,6 +25,7 @@ protected void OnEnable()
24
25
m_CameraTag = pf . Find ( w => w . m_CameraTag ) ;
25
26
m_RenderSize = pf . Find ( w => w . m_RenderSize ) ;
26
27
m_RenderAspect = pf . Find ( w => w . m_RenderAspect ) ;
28
+ m_FlipVertically = pf . Find ( w => w . m_FlipVertical ) ;
27
29
}
28
30
29
31
public override void OnInspectorGUI ( )
@@ -58,6 +60,9 @@ public override void OnInspectorGUI()
58
60
}
59
61
}
60
62
63
+ EditorGUILayout . PropertyField ( m_FlipVertically , new GUIContent ( "Flip image vertically" ) ) ;
64
+
65
+
61
66
serializedObject . ApplyModifiedProperties ( ) ;
62
67
}
63
68
}
You can’t perform that action at this time.
0 commit comments