You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
653 B

  1. using System.Collections.Generic;
  2. namespace UnityEditor.PostProcessing
  3. {
  4. public class DefaultPostFxModelEditor : PostProcessingModelEditor
  5. {
  6. List<SerializedProperty> m_Properties = new List<SerializedProperty>();
  7. public override void OnEnable()
  8. {
  9. var iter = m_SettingsProperty.Copy().GetEnumerator();
  10. while (iter.MoveNext())
  11. m_Properties.Add(((SerializedProperty)iter.Current).Copy());
  12. }
  13. public override void OnInspectorGUI()
  14. {
  15. foreach (var property in m_Properties)
  16. EditorGUILayout.PropertyField(property);
  17. }
  18. }
  19. }