Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

GUIStyle.CalcScreenSize

CalcScreenSize(contentSize: Vector2): Vector2;
Vector2 CalcScreenSize(Vector2 contentSize);
def CalcScreenSize(contentSize as Vector2) as Vector2

Description

Calculate the size of an element formatted with this style, and a given space to content.