Class AnnotationAttribute | Kinematica | 0.8.0-preview
docs.unity.cn
    Show / Hide Table of Contents

    Class AnnotationAttribute

    Inheritance
    Object
    Attribute
    AnnotationAttribute
    MarkerAttribute
    TagAttribute
    Namespace: Unity.Kinematica.Editor
    Syntax
    [AttributeUsage(AttributeTargets.Struct)]
    public abstract class AnnotationAttribute : Attribute, _Attribute

    Constructors

    AnnotationAttribute(String, String)

    Declaration
    protected AnnotationAttribute(string displayName, string color)
    Parameters
    Type Name Description
    String displayName
    String color

    Fields

    m_Color

    Declaration
    protected Color m_Color
    Field Value
    Type Description
    Color

    m_DisplayName

    Declaration
    protected string m_DisplayName
    Field Value
    Type Description
    String

    Methods

    GetColor(Type)

    Declaration
    public static Color GetColor(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    Color

    GetDisplayName<T>(Type)

    Declaration
    protected static string GetDisplayName<T>(Type type)
        where T : AnnotationAttribute
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    String
    Type Parameters
    Name Description
    T

    GetFullDisplayName(HashSet<Type>, Type, String)

    Declaration
    protected static string GetFullDisplayName(HashSet<Type> typesWithDuplicateClassName, Type type, string displayName)
    Parameters
    Type Name Description
    HashSet<Type> typesWithDuplicateClassName
    Type type
    String displayName
    Returns
    Type Description
    String

    GetTypesWithDuplicateDescription(IEnumerable<Type>, AnnotationAttribute.GetDisplayNameDelegate)

    Declaration
    protected static HashSet<Type> GetTypesWithDuplicateDescription(IEnumerable<Type> types, AnnotationAttribute.GetDisplayNameDelegate getDisplayName)
    Parameters
    Type Name Description
    IEnumerable<Type> types
    AnnotationAttribute.GetDisplayNameDelegate getDisplayName
    Returns
    Type Description
    HashSet<Type>
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Monday, August 3, 2020