This version of Unity is unsupported.

TextGenerator.GetPreferredHeight

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.