Description
The ControlRowHeight
field in the Editor.ControlWidget
class specifies the height of each row in a control widget. This field is a static and public member, meaning it can be accessed without instantiating the ControlWidget
class and is accessible from outside the class.
Usage
Use the ControlRowHeight
field to define or retrieve the height of rows in a control widget. This can be useful when customizing the layout of control widgets in the editor to ensure consistent spacing and alignment.
Example
// Example of setting the ControlRowHeight
Editor.ControlWidget.ControlRowHeight = 20.0f;
// Example of getting the ControlRowHeight
float rowHeight = Editor.ControlWidget.ControlRowHeight;
// Use the rowHeight variable to adjust layout or perform calculations
if (rowHeight > 15.0f)
{
// Perform some action based on row height
}