@@ -132,11 +132,6 @@ public override void OnInspectorGUI()
132
132
133
133
protected void AddSourceSettings ( RecorderInputSetting sourceSettings )
134
134
{
135
- sourceSettings . name = GUID . Generate ( ) . ToString ( ) ;
136
-
137
- AssetDatabase . AddObjectToAsset ( sourceSettings , serializedObject . targetObject ) ;
138
- AssetDatabase . Refresh ( ) ;
139
-
140
135
m_Inputs . InsertArrayElementAtIndex ( m_Inputs . arraySize ) ;
141
136
var arryItem = m_Inputs . GetArrayElementAtIndex ( m_Inputs . arraySize - 1 ) ;
142
137
arryItem . objectReferenceValue = sourceSettings ;
@@ -150,8 +145,6 @@ public void ChangeInputSettings(int atIndex, RecorderInputSetting newSettings)
150
145
{
151
146
if ( newSettings != null )
152
147
{
153
- newSettings . name = GUID . Generate ( ) . ToString ( ) ;
154
-
155
148
AssetDatabase . AddObjectToAsset ( newSettings , serializedObject . targetObject ) ;
156
149
AssetDatabase . Refresh ( ) ;
157
150
@@ -167,19 +160,6 @@ public void ChangeInputSettings(int atIndex, RecorderInputSetting newSettings)
167
160
}
168
161
}
169
162
170
- protected void PrepareInitialSources ( )
171
- {
172
- var recSettings = ( RecorderSettings ) target ;
173
- if ( recSettings . m_SourceSettings == null || recSettings . m_SourceSettings . Length == 0 )
174
- {
175
- var newSettings = recSettings . GetDefaultSourcesSettings ( ) ;
176
- foreach ( var newSetting in newSettings )
177
- {
178
- AddSourceSettings ( newSetting ) ;
179
- }
180
- }
181
- }
182
-
183
163
protected virtual void OnInputGui ( )
184
164
{
185
165
bool multiInputs = m_Inputs . arraySize > 1 ;
@@ -213,6 +193,7 @@ protected virtual void OnOutputGui()
213
193
214
194
protected virtual void OnEncodingGui ( )
215
195
{
196
+ // place holder
216
197
}
217
198
218
199
protected virtual void OnTimeGui ( )
@@ -295,7 +276,6 @@ protected virtual void OnInputGroupGui()
295
276
m_FoldoutInput = EditorGUILayout . Foldout ( m_FoldoutInput , "Input(s)" ) ;
296
277
if ( m_FoldoutInput )
297
278
{
298
- PrepareInitialSources ( ) ;
299
279
++ EditorGUI . indentLevel ;
300
280
OnInputGui ( ) ;
301
281
-- EditorGUI . indentLevel ;
0 commit comments