This version of Unity is unsupported.

GUIStyle.CalcHeight

Switch to Manual

Declaration

public float CalcHeight(GUIContent content, float width);

Description

How tall this element will be when rendered with content and a specific width.