Utility functions for drawing UI in the Inspector window
More...
|
| static void | DrawMatrixProperty (string caption, ref Matrix4x4 matrix) |
| | Draws the translation / rotation / scale widgets for a Matrix4x4 More...
|
| |
| static void | RoundVector (ref Vector3 vector, int precision) |
| | Rounds the Vector to the nearest precision More...
|
| |
| static float | Round (float f, int precision) |
| | rounds a float to the nearest precision More...
|
| |
| static void | DrawVectorProperty (string caption, ref Vector3 vector) |
| | Draws XYZ components of a Vector3 in the inspector window within the same line for better usability and asthetics More...
|
| |
Utility functions for drawing UI in the Inspector window
Definition at line 12 of file InspectorUtils.cs.
◆ DrawMatrixProperty()
| static void DungeonArchitect.Editors.InspectorUtils.DrawMatrixProperty |
( |
string |
caption, |
|
|
ref Matrix4x4 |
matrix |
|
) |
| |
|
static |
Draws the translation / rotation / scale widgets for a Matrix4x4
- Parameters
-
| caption | The caption to display above the widget |
| matrix | The transform matrix to modify |
Definition at line 19 of file InspectorUtils.cs.
◆ DrawVectorProperty()
| static void DungeonArchitect.Editors.InspectorUtils.DrawVectorProperty |
( |
string |
caption, |
|
|
ref Vector3 |
vector |
|
) |
| |
|
static |
Draws XYZ components of a Vector3 in the inspector window within the same line for better usability and asthetics
- Parameters
-
| caption | The caption to use on the property |
| vector | The vector to modify |
Definition at line 73 of file InspectorUtils.cs.
◆ Round()
| static float DungeonArchitect.Editors.InspectorUtils.Round |
( |
float |
f, |
|
|
int |
precision |
|
) |
| |
|
static |
rounds a float to the nearest precision
- Parameters
-
| f | The value to round |
| precision | The precision in digits |
- Returns
Definition at line 62 of file InspectorUtils.cs.
◆ RoundVector()
| static void DungeonArchitect.Editors.InspectorUtils.RoundVector |
( |
ref Vector3 |
vector, |
|
|
int |
precision |
|
) |
| |
|
static |
Rounds the Vector to the nearest precision
- Parameters
-
| vector | The vector to round |
| precision | The precision in digits |
Definition at line 49 of file InspectorUtils.cs.
The documentation for this class was generated from the following file:
- C:/gamedev/unity/DA20.1X/Assets/CodeRespawn/DungeonArchitect/Editor/Utils/InspectorUtils.cs