AnimancerEditorUtilities.

GetAttribute<TAttribute>(ICustomAttributeProvider, bool) Method

Summary

[Animancer Extension] [Editor-Only] Returns the first TAttribute attribute on the `member` or null if there is none.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Containing Type
AnimancerEditorUtilities

Syntax

public static TAttribute GetAttribute<TAttribute>(this ICustomAttributeProvider member, bool inherit = false) 
    where TAttribute : class

Type Parameters

Name Description
TAttribute

Parameters

Name Type Description
member ICustomAttributeProvider
inherit bool

Return Value

Type Description
TAttribute