class in UnityEngine
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.Close
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Close
Script interface for font assets.
You can use this class to dynamically switch fonts on Text Meshes.
See Also: TextMesh.
|The ascent of the font.
|Access an array of all characters contained in the font texture.
|Is the font a dynamic font.
|The default size of the font.
|The line height of the font.
|The material used for the font display.
|Create a new Font.
|Get rendering info for a specific character.
|Does this font have a specific character?
|Request characters to be added to the font texture (dynamic fonts only).
|Creates a Font object which lets you render a font installed on the user machine.
|Returns the maximum number of verts that the text generator may return for a given string.
|Get names of fonts installed on the machine.
|Gets the file paths of the fonts that are installed on the operating system.
|Set a function to be called when the dynamic font texture is rebuilt.
|Should the object be hidden, saved with the Scene or modifiable by the user?
|The name of the object.
|Gets the instance ID of the object.
|Returns the name of the object.
|Removes a GameObject, component or asset.
|Destroys the object obj immediately. You are strongly recommended to use Destroy instead.
|Do not destroy the target Object when loading a new Scene.
|Returns the first active loaded object of Type type.
|Gets a list of all loaded objects of Type type.
|Clones the object original and returns the clone.