Version 3.3.1.2

InheritAttributeAttributesAttributeProcessor class

Namespace: Sirenix.OdinInspector.Editor.Resolvers
Assembly: Sirenix.OdinInspector.Editor
[ResolverPriority(-100000)]
public class InheritAttributeAttributesAttributeProcessor : OdinAttributeProcessor, IHideObjectMembers
This attribute processor will take any attribute already applied to the property with the IncludeMyAttributesAttribute applied to, and take all attributes applied to the attribute (except any System.AttributeUsageAttribute) and add to them to the property. This allows for adding attributes to attributes in the property system.
Inheritance

Constructors

InheritAttributeAttributesAttributeProcessor()
public InheritAttributeAttributesAttributeProcessor()

Methods

ProcessChildMemberAttributes(InspectorProperty, MemberInfo, List<Attribute>)
Looks for attributes in the attributes list with a IncludeMyAttributesAttribute applied, and adds the attribute from those attributes to the property.
public override void ProcessChildMemberAttributes(InspectorProperty parentProperty, MemberInfo member, List<Attribute> attributes)
Parameters
InspectorProperty parentProperty

The parent of the member.

System.Reflection.MemberInfo member

The member that is being processed.

System.Collections.Generic.List<System.Attribute> attributes

The list of attributes currently applied to the property.