Class MarkerAttribute
Inheritance
MarkerAttribute
Syntax
[AttributeUsage(AttributeTargets.Struct)]
public class MarkerAttribute : Attribute, _Attribute
Constructors
MarkerAttribute(String, String)
Declaration
public MarkerAttribute(string displayName, string color)
Parameters
Fields
k_UnknownMarkerType
Declaration
public const string k_UnknownMarkerType = "Unknown Marker Type"
Field Value
Methods
GetColor(Type)
Declaration
public static Color GetColor(Type type)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
Returns
GetDescription(Type)
Declaration
public static string GetDescription(Type type)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
Returns
GetMarkerTypes()
Declaration
public static IEnumerable<Type> GetMarkerTypes()
Returns
HasMarkerAttribute(Type)
Declaration
public static bool HasMarkerAttribute(Type type)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
Returns
IsMarkerType(Type)
Declaration
public static bool IsMarkerType(Type type)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
Returns