Photon Fusion 2.1.1

UnitAttribute Class Referencesealed

Unit Attribute class. Used to mark a field with the respective Units. More...

Inherits DecoratingPropertyAttribute.

Public Member Functions

 UnitAttribute (Units units)
 Initializes a new instance of the UnitAttribute class with the specified unit.
Public Member Functions inherited from PropertyAttribute
 PropertyAttribute (bool applyToCollection=false)

Properties

Units Unit [get]
 Selected Unit for the field.
Properties inherited from PropertyAttribute
new bool applyToCollection [get]

Additional Inherited Members

Static Public Attributes inherited from DecoratingPropertyAttribute
const int DefaultOrder = -10000
 The default order of the attribute.
Protected Member Functions inherited from DecoratingPropertyAttribute
 DecoratingPropertyAttribute (bool applyToCollection=false)
 Initializes a new instance with the default order.
 DecoratingPropertyAttribute (int order, bool applyToCollection=false)
 Initializes a new instance with the specified order.

Detailed Description

Unit Attribute class. Used to mark a field with the respective Units.

Constructor & Destructor Documentation

◆ UnitAttribute()

UnitAttribute ( Units units)

Initializes a new instance of the UnitAttribute class with the specified unit.

Parameters
units