Photon Fusion 2.0.3

Public Member Functions | Properties | List of all members
UnitAttribute Class Reference

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. More...
 

Properties

Units Unit [get]
 Selected Unit for the field. More...
 

Additional Inherited Members

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

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

Property Documentation

◆ Unit

Units Unit
get

Selected Unit for the field.