/// <summary> /// Adds a custom inspectable field with a custom getter and setter. /// </summary> /// <typeparam name="T">Type the field is inspecting.</typeparam> /// <param name="name">Name of the field.</param> /// <param name="getter">Method that returns the current value of the field.</param> /// <param name="setter">Method that sets a new value of the field.</param> public void AddField <T>(string name, Func <T> getter, Action <T> setter) { SerializableProperty property = SerializableProperty.Create(getter, setter); AddFieldInternal(name, name, property, null, null); }