Method TwoFloatSingleLine
TwoFloatSingleLine(GUIContent, MaterialProperty, GUIContent, MaterialProperty, GUIContent, MaterialEditor, float)
Helper function to draw two float variables in one lines.
Declaration
public static void TwoFloatSingleLine(GUIContent title, MaterialProperty prop1, GUIContent prop1Label, MaterialProperty prop2, GUIContent prop2Label, MaterialEditor materialEditor, float labelWidth = 30)
Parameters
Type | Name | Description |
---|---|---|
GUIContent | title | The title to use. |
MaterialProperty | prop1 | The property for the first float. |
GUIContent | prop1Label | The label for the first float. |
MaterialProperty | prop2 | The property for the second float. |
GUIContent | prop2Label | The label for the second float. |
MaterialEditor | materialEditor | The material editor to use. |
float | labelWidth | The width of the labels. |