Skip to main content
Version: 20 Mar 2024

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

TypeNameDescription
TypepropertyTypeThe Type value of the enum