AttributeCache<TAttribute> Class

Summary

[Editor-Only] A cache to optimize repeated attribute access.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["AttributeCache<TAttribute>"] class Type type-node

Syntax

public static class AttributeCache<TAttribute> where TAttribute : class

Type Parameters

Name Description
TAttribute

Methods

Name Value Summary
FindAttribute(FieldInfo) TAttribute
Returns the TAttribute attribute on the specified `field` or its System.Reflection.FieldInfo.FieldType or System.Reflection.MemberInfo.DeclaringType.
static
FindAttribute(SerializedProperty) TAttribute
[Editor-Only] Returns the TAttribute attribute on the underlying field of the `property` or its System.Reflection.FieldInfo.FieldType or System.Reflection.MemberInfo.DeclaringType or any of the parent properties or the type of the UnityEditor.SerializedObject.targetObject.
static
GetAttribute(MemberInfo) TAttribute
Returns the TAttribute attribute on the specified `member` (if there is one).
static
GetAttribute(Type) TAttribute
Returns the TAttribute attribute (if any) on the specified `type` or its System.Type.BaseType (recursively).
static