Version: 2017.2

TextGenerator.GetPreferredHeight

Switch to Manual
public float GetPreferredHeight (string str, TextGenerationSettings settings);

Parameters

str Generation text.
settings Settings for generation.

Returns

float Preferred height.

Description

Given a string and settings, returns the preferred height for a container that would hold this text.