Version 2.1.0.0

OdinAttributeProcessor class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public abstract class OdinAttributeProcessor : IHideObjectMembers
Attribute processor that can add, change and remove attributes from a property.
Inheritance
  • System.Object
  • OdinAttributeProcessor

Constructors

OdinAttributeProcessor()
protected OdinAttributeProcessor()

Methods

CanProcessChildMemberAttributes(InspectorProperty, MemberInfo)
Checks if the processor can process attributes for the specified member.
public virtual bool CanProcessChildMemberAttributes(InspectorProperty parentProperty, MemberInfo member)
Parameters
InspectorProperty parentProperty

The parent property of the member.

System.Reflection.MemberInfo member

The member to be processed.

Returns
System.Boolean

true if the processor can process for the specified member. Otherwise false.

CanProcessSelfAttributes(InspectorProperty)
Checks if the processor can process attributes for the specified property.
public virtual bool CanProcessSelfAttributes(InspectorProperty property)
Parameters
InspectorProperty property

The property to process.

Returns
System.Boolean

true if the processor can process attributes for the specified property. Otherwise false.

Create(Type)
Instanciates an OdinAttributeProcessor instance of the specified type.
public static OdinAttributeProcessor Create(Type processorType)
Parameters
System.Type processorType

The type of processor to instanciate. The type must inherit from OdinAttributeProcessor.

Returns
OdinAttributeProcessor

A new instance of the specified type.

ProcessChildMemberAttributes(InspectorProperty, MemberInfo, List<Attribute>)
Processes attributes for the specified member.
public virtual void ProcessChildMemberAttributes(InspectorProperty parentProperty, MemberInfo member, List<Attribute> attributes)
Parameters
InspectorProperty parentProperty

The parent property of the specified member.

System.Reflection.MemberInfo member

The member to process attributes for.

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

The current attributes applied to the property.

ProcessSelfAttributes(InspectorProperty, List<Attribute>)
Processes attributes for the specified property.
public virtual void ProcessSelfAttributes(InspectorProperty property, List<Attribute> attributes)
Parameters
InspectorProperty property

The property to process attributes for.

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

The current attributes applied to the property.