Inheritance
System.Object
DisplayUnits
public class DisplayUnits
Constructors
Declaration
public DisplayUnits(Units units)
Parameters
Type |
Name |
Description |
Units |
units |
|
Fields
Declaration
public static readonly string[] UnitNames
Field Value
Type |
Description |
System.String[] |
|
Declaration
public readonly Units Units
Field Value
Declaration
public static readonly int[] UnitValues
Field Value
Type |
Description |
System.Int32[] |
|
Methods
Declaration
public string GetSIUnitString(int unitPower)
Parameters
Type |
Name |
Description |
System.Int32 |
unitPower |
|
Returns
Type |
Description |
System.String |
|
Postfix()
Declaration
Returns
Type |
Description |
System.String |
|
ToGUIContentWithTooltips(Single, Boolean, Int32, Int32)
Declaration
public GUIContent ToGUIContentWithTooltips(float ms, bool showUnits = false, int limitToNDigits = 5, int frameIndex = -1)
Parameters
Type |
Name |
Description |
System.Single |
ms |
|
System.Boolean |
showUnits |
|
System.Int32 |
limitToNDigits |
|
System.Int32 |
frameIndex |
|
Returns
Type |
Description |
GUIContent |
|
Declaration
public string ToString(double ms, bool showUnits, int limitToNDigits)
Parameters
Type |
Name |
Description |
System.Double |
ms |
|
System.Boolean |
showUnits |
|
System.Int32 |
limitToNDigits |
|
Returns
Type |
Description |
System.String |
|
Declaration
public string ToString(float ms, bool showUnits, int limitToNDigits)
Parameters
Type |
Name |
Description |
System.Single |
ms |
|
System.Boolean |
showUnits |
|
System.Int32 |
limitToNDigits |
|
Returns
Type |
Description |
System.String |
|