Version 3.3.0.1

TypeDefinitionAttributeProcessor class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
[ResolverPriority(1000)]
public class TypeDefinitionAttributeProcessor : OdinAttributeProcessor, IHideObjectMembers
Find attributes attached to the type definition of a property and adds to them to attribute list.
Inheritance

Constructors

TypeDefinitionAttributeProcessor()
public TypeDefinitionAttributeProcessor()

Methods

CanProcessChildMemberAttributes(InspectorProperty, MemberInfo)
This attribute processor can only process for properties.
public override bool CanProcessChildMemberAttributes(InspectorProperty parentProperty, MemberInfo member)
Parameters
InspectorProperty parentProperty

The parent of the specified member.

System.Reflection.MemberInfo member

The member to process.

Returns
System.Boolean

false.

CanProcessSelfAttributes(InspectorProperty)
This attribute processor can only process for properties with an attached value entry.
public override bool CanProcessSelfAttributes(InspectorProperty property)
Parameters
InspectorProperty property

The property to process.

Returns
System.Boolean

true if the specified property has a value entry. Otherwise false.

ProcessSelfAttributes(InspectorProperty, List<Attribute>)
Finds all attributes attached to the type and base types of the specified property value and adds them to the attribute list.
public override void ProcessSelfAttributes(InspectorProperty property, List<Attribute> attributes)
Parameters
InspectorProperty property

The property to process.

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

The list of attributes for the property.