jacobdufault / fullinspector

Full Inspector supercharges Unity's inspector
MIT License
111 stars 27 forks source link

Consider adding support for default values in facade #106

Open jacobdufault opened 9 years ago

jacobdufault commented 9 years ago

How should they be supported? Via an annotation (ie, [InspectorFacadeDefault]), or via some other mechanism? One issue with annotations is that the default values will be limited to primitive types.

jacobdufault commented 9 years ago

What about something like

interface IFacadeDefaultValueProvider {
    object GetDefaultValue(MemberInfo member);
}