public override void OnInspectorGUI() { base.OnInspectorGUI(); BetterInputField obj = target as BetterInputField; helper.DrawGui(serializedObject, obj); var prop = serializedObject.FindProperty("additionalPlaceholders"); EditorGuiUtils.DrawLayoutList("Additional Placeholders", obj.AdditionalPlaceholders, prop, ref phCount, createCallback: null, drawItemCallback: (item, p) => { EditorGUILayout.PropertyField(p); serializedObject.ApplyModifiedProperties(); } ); serializedObject.ApplyModifiedProperties(); }
private void OnEnable() { _inputField = (BetterInputField)target; }