Version: 2017.3

TrueTypeFontImporter

class in UnityEditor

/

Hereda de:AssetImporter

Cambiar al Manual

Descripción

AssetImporter for importing Fonts.

Variables

ascentCalculationModeCalculation mode for determining font's ascent.
characterPaddingBorder pixels added to character images for padding. This is useful if you want to render text using a shader which needs to render outside of the character area (like an outline shader).
characterSpacingSpacing between character images in the generated texture in pixels. This is useful if you want to render text using a shader which samples pixels outside of the character area (like an outline shader).
customCharactersA custom set of characters to be included in the Font Texture.
fontNamesAn array of font names, to be used when includeFontData is set to false.
fontReferencesReferences to other fonts to be used looking for fallbacks.
fontRenderingModeFont rendering mode to use for this font.
fontSizeFont size to use for importing the characters.
fontTextureCaseUse this to adjust which characters should be imported.
fontTTFNameThe internal font name of the TTF file.
includeFontDataIf this is enabled, the actual font will be embedded into the asset for Dynamic fonts.

Funciones Públicas

GenerateEditableFontCreate an editable copy of the font asset at path.

Miembros heredados

Variables

assetBundleNameGet or set the AssetBundle name.
assetBundleVariantGet or set the AssetBundle variant.
assetPathThe path name of the asset for this importer. (Read Only)
userDataGet or set any user data.
hideFlags¿Debería el objeto estar oculto, guardado con la escena o modificable por el usuario?
nameEl nombre del objeto.

Funciones Públicas

AddRemapMap a sub-asset from an imported asset (such as an FBX file) to an external Asset of the same type.
GetExternalObjectMapGets a copy of the external object map used by the AssetImporter.
RemoveRemapRemoves an item from the map of external objects.
SaveAndReimportSave asset importer settings if asset importer is dirty.
SetAssetBundleNameAndVariantSet the AssetBundle name and variant.
GetInstanceIDDevuelve el id de la instancia del objeto.
ToStringReturns the name of the GameObject.

Funciones Estáticas

GetAtPathRetrieves the asset importer for the asset at path.
DestroyElimina un gameobject, componente o asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadHace que el objeto target no sea destruido automáticamente cuando se cargue una nueva escena.
FindObjectOfTypeDevuelve el primer objeto activo cargado de tipo type.
FindObjectsOfTypeDevuelve una lista de todos los objetos activos cargados de tipo type.
InstantiateClona el objeto original y devuelve el clon.

Operadores

bool¿Existe el objeto?
operator !=Compare si dos objetos se refieren a un objeto diferente.
operator ==Compara dos referencias de objeto para ver si se refieren al mismo objeto.