Version 2.1.0.0

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.

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.