[OnRectangleSpace]
Support Types
Type
Description
Parameters
Parameter Name
Type
Description
Examples
[OnRectangleSpace(GetHeight = "GetCodeHeight", MarginTop = 10)]
public void DrawRectangleSpace(Rect position)
{
// Custom GUI drawing code here
GUI.Box(position, "Custom Space");
}
public float GetCodeHeight()
{
return 50f;
}Last updated