MLBitMask
NameSpace: MagicLeap
Custom attribute to make it easy to turn enum fields into bit masks in the inspector. The enum type must be defined in order for the inspector to be able to know what the bits should be set to.
Inherits from:
PropertyAttribute
Public Fields
PropertyType
Gets or sets the type of the Enum that is being turned into a bit mask.
public Type PropertyType { get; set; }
Public Methods
MLBitMask
Initializes a new instance of the MLBitMask class. enum Type. This constructor call is automatic when decorating a field with this Attribute.
public MLBitMask(
Type propertyType
)
Parameters
Type | Name | Description |
---|---|---|
Type | propertyType | The Type value of the enum |