Font

class in UnityEngine

Cambiar al Manual

Descripción

Script interface for font assets.

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

See Also: TextMesh.

Variables

ascentEl tamaño por defecto de la fuente.
characterInfoAccess an array of all characters contained in the font texture.
dynamicIs the font a dynamic font.
fontSizeEl tamaño por defecto de la fuente.
lineHeightEl tamaño por defecto de la fuente.
materialThe material used for the font display.

Constructores

FontCrear una nueva fuente.

Funciones Públicas

GetCharacterInfoGet rendering info for a specific character.
HasCharacter¿Contiene esta fuente un carácter específico?
RequestCharactersInTextureRequest characters to be added to the font texture (dynamic fonts only).

Funciones Estáticas

CreateDynamicFontFromOSFontCreates a Font object which lets you render a font installed on the user machine.
GetMaxVertsForStringReturns the maximum number of verts that the text generator may return for a given string.
GetOSInstalledFontNamesGet names of fonts installed on the machine.
GetPathsToOSFontsGets the file paths of the fonts that are installed on the operating system.

Events

textureRebuiltSet a function to be called when the dynamic font texture is rebuilt.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961