public void DoLayout() { var externalListProp = property.FindPropertyRelative("externalSideCornerList"); EditorGUILayout.PropertyField(externalListProp); if (!(externalListProp.FindPropertyRelative("externalObject").objectReferenceValue is IRectSideCornerListProvider)) { rList.DoLayoutList(); } }
public override void OnInspectorGUI() { if (list == null) { return; } list.DoLayoutList(); using (new EditorGUILayout.HorizontalScope()) { EditorGUILayout.Space(); EditorGUILayout.Space(); if (GUILayout.Button("Delete All") == true) { UnityEngine.PlayerPrefs.DeleteAll(); } } }