Font

class in UnityEngine

/

Inherits from:Object

Switch to Manual

Description

Script interface for font assets.

You can use this class to dynamically switch fonts on Text Meshes.

See Also: TextMesh.

Variables

ascentМатериал, используемый для визуализации шрифта.
characterInfoДоступ к массиву всех символов, содержащихся в текстуре шрифта.
dynamicЯвляется ли шрифт динамическим шрифтом.
fontSizeМатериал, используемый для визуализации шрифта.
lineHeightМатериал, используемый для визуализации шрифта.
materialМатериал, используемый для визуализации шрифта.

Constructors

FontСоздать новый шрифт.

Public Functions

GetCharacterInfoПолучить информацию о визуализации определенного символа.
HasCharacterСодержит ли этот шрифт определенный символ?
RequestCharactersInTextureЗапрос на добавление символов в текстуру шрифта (только для динамических шрифтов).

Static Functions

CreateDynamicFontFromOSFontCreates a Font object which lets you render a font installed on the user machine.
GetMaxVertsForStringВозвращает максимальное число вершин, которое для данной строки может вернуть генератор текста.
GetOSInstalledFontNamesВозвращает имена шрифтов, установленных на компьютере.
GetPathsToOSFontsGets the file paths of the fonts that are installed on the operating system.

Events

textureRebuiltУстановить функцию, которая будет вызвана при пересоздании текстуры динамического шрифта.

Inherited members

Variables

hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameThe name of the object.

Public Functions

GetInstanceIDReturns the instance id of the object.
ToStringReturns the name of the object.

Static Functions

DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeReturns the first active loaded object of Type type.
FindObjectsOfTypeReturns a list of all active loaded objects of Type type.
InstantiateClones the object original and returns the clone.

Operators

boolDoes the object exist?
operator !=Compares if two objects refer to a different object.
operator ==Compares two object references to see if they refer to the same object.