Class MarkerAttribute | Kinematica | 0.4.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class MarkerAttribute

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

    Constructors

    MarkerAttribute(String, String)

    Declaration
    public MarkerAttribute(string displayName, string color)
    Parameters
    Type Name Description
    String displayName
    String color

    Fields

    k_UnknownMarkerType

    Declaration
    public const string k_UnknownMarkerType = "Unknown Marker Type"
    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

    GetDescription(Type)

    Declaration
    public static string GetDescription(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    String

    GetMarkerTypes()

    Declaration
    public static IEnumerable<Type> GetMarkerTypes()
    Returns
    Type Description
    IEnumerable<Type>

    HasMarkerAttribute(Type)

    Declaration
    public static bool HasMarkerAttribute(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    Boolean

    IsMarkerType(Type)

    Declaration
    public static bool IsMarkerType(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    Boolean
    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