Class AnnotationAttribute | Kinematica | 0.6.0-preview
docs.unity3d.com
    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023