Version 2.1.0.0

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.

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.