Version: 2017.1

TextGenerator.GetPreferredWidth

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

Parameters

str Generation text.
settings Settings for generation.

Returns

float Preferred width.

Description

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