Version 3.3.1.2

UnitInfo class

Namespace: Sirenix.Utilities.Editor
Assembly: Sirenix.Utilities.Editor
public class UnitInfo
Object describing units, including name, symbols and how to convert it to other units.
Inheritance
  • System.Object
  • UnitInfo

Fields

ConvertFromBase
Custom method for converting from the base unit.
public readonly Func<decimal, decimal> ConvertFromBase
ConvertToBase
Custom method for converting to the base unit.
public readonly Func<decimal, decimal> ConvertToBase
Multiplier
Multiplier for converting from the base unit.
public readonly decimal Multiplier
Name
Name of the unit.
public readonly string Name
Symbols
Symbols of the unit. First symbol is considered the primary symbol.
public readonly string[] Symbols
UnitCategory
The category of the unit. Units can only be converted within the same category.
public readonly string UnitCategory
UsesCustomConversion
Indicates whether the UnitInfo should use the multiplier or the ConvertFromBase and ConvertToBase methods.
public readonly bool UsesCustomConversion