Method GetPreferredValues
GetPreferredValues()
Function to Calculate the Preferred Width and Height of the text object.
Declaration
public Vector2 GetPreferredValues()
Returns
GetPreferredValues(float, float)
Function to Calculate the Preferred Width and Height of the text object given the provided width and height.
Declaration
public Vector2 GetPreferredValues(float width, float height)
Parameters
Returns
GetPreferredValues(string)
Function to Calculate the Preferred Width and Height of the text object given a certain string.
Declaration
public Vector2 GetPreferredValues(string text)
Parameters
Type |
Name |
Description |
string |
text |
|
Returns
GetPreferredValues(string, float, float)
Function to Calculate the Preferred Width and Height of the text object given a certain string and size of text container.
Declaration
public Vector2 GetPreferredValues(string text, float width, float height)
Parameters
Returns