[RectangleSpace]
Parameters
Parameter Name
Arguments
Description
Examples
[RectangleSpace("OnDrawRect")]
public string customSpace;
private void OnDrawRect(Rect position)
{
GUI.Label(position, "Custom GUI Element");
}
[RectangleSpace("OnDrawRect", Height = 50)]
public int fixedHeightSpace;
[RectangleSpace("OnDrawRect", GetHeightCallback = "GetSpaceHeight")]
public float dynamicHeightSpace;
private float GetSpaceHeight()
{
return 40.0f;
}Last updated