C# Класс tk2dFontData, Malisse

Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
charDict tk2dFontChar>.Dictionary
chars tk2dFontChar[],
fontPlatformGUIDs string[]
fontPlatforms string[]
gradientCount int
gradientTexture UnityEngine.Texture2D
hasPlatformData bool
kerning tk2dFontKerning[],
largestWidth float
lineHeight float
managedFont bool
material Material
needMaterialInstance bool
spriteCollection tk2dSpriteCollectionData,
texelSize Vector2
textureGradients bool
useDictionary bool

Открытые методы

Метод Описание
Init ( ) : void
InitDictionary ( ) : void

Initializes the dictionary, if it is required

OnDestroy ( ) : void
ResetPlatformData ( ) : void
SetDictionary ( tk2dFontChar>.Dictionary dict ) : void

Internal function to set up the dictionary

Описание методов

Init() публичный Метод

public Init ( ) : void
Результат void

InitDictionary() публичный Метод

Initializes the dictionary, if it is required
public InitDictionary ( ) : void
Результат void

OnDestroy() публичный Метод

public OnDestroy ( ) : void
Результат void

ResetPlatformData() публичный Метод

public ResetPlatformData ( ) : void
Результат void

SetDictionary() публичный Метод

Internal function to set up the dictionary
public SetDictionary ( tk2dFontChar>.Dictionary dict ) : void
dict tk2dFontChar>.Dictionary
Результат void

Описание свойств

charDict публичное свойство

Dictionary of characters. This is used when chars is null. Chars is preferred when number of characters is low (< 2048).
public Dictionary charDict
Результат tk2dFontChar>.Dictionary

chars публичное свойство

Array of tk2dFontChar. If this.useDictionary is true, charDict will be used instead.
public tk2dFontChar[], chars
Результат tk2dFontChar[],

fontPlatformGUIDs публичное свойство

Returns an array of GUIDs, each referring to an actual tk2dFontData object This object contains the actual font for the platform.
public string[] fontPlatformGUIDs
Результат string[]

fontPlatforms публичное свойство

Returns an array of platform names.
public string[] fontPlatforms
Результат string[]

gradientCount публичное свойство

Number of gradients in list. Used to determine how large the gradient uvs are and the offsets into the gradient lookup texture.
public int gradientCount
Результат int

gradientTexture публичное свойство

Reference to gradient texture
public Texture2D,UnityEngine gradientTexture
Результат UnityEngine.Texture2D

hasPlatformData публичное свойство

public bool hasPlatformData
Результат bool

kerning публичное свойство

Array of tk2dFontKerning
public tk2dFontKerning[], kerning
Результат tk2dFontKerning[],

largestWidth публичное свойство

Width of the largest character
public float largestWidth
Результат float

lineHeight публичное свойство

The height of the line in local units.
public float lineHeight
Результат float

managedFont публичное свойство

public bool managedFont
Результат bool

material публичное свойство

Material used by this font
public Material material
Результат Material

needMaterialInstance публичное свойство

public bool needMaterialInstance
Результат bool

spriteCollection публичное свойство

public tk2dSpriteCollectionData, spriteCollection
Результат tk2dSpriteCollectionData,

texelSize публичное свойство

public Vector2 texelSize
Результат Vector2

textureGradients публичное свойство

Does this font have gradients? Used to determine if second uv channel is necessary.
public bool textureGradients
Результат bool

useDictionary публичное свойство

Whether this font uses the dictionary or an array for character lookup.
public bool useDictionary
Результат bool