TextGenerator.GetPreferredWidth

Declaration

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.


Did you find this page useful? Please give it a rating: