C# Class tk2dFontData, Malisse

Inheritance: MonoBehaviour
Afficher le fichier Open project: Collegiennes/Malisse Class Usage Examples

Méthodes publiques

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Method Details

Init() public méthode

public Init ( ) : void
Résultat void

InitDictionary() public méthode

Initializes the dictionary, if it is required
public InitDictionary ( ) : void
Résultat void

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

ResetPlatformData() public méthode

public ResetPlatformData ( ) : void
Résultat void

SetDictionary() public méthode

Internal function to set up the dictionary
public SetDictionary ( tk2dFontChar>.Dictionary dict ) : void
dict tk2dFontChar>.Dictionary
Résultat void

Property Details

charDict public_oe property

Dictionary of characters. This is used when chars is null. Chars is preferred when number of characters is low (< 2048).
public Dictionary charDict
Résultat tk2dFontChar>.Dictionary

chars public_oe property

Array of tk2dFontChar. If this.useDictionary is true, charDict will be used instead.
public tk2dFontChar[], chars
Résultat tk2dFontChar[],

fontPlatformGUIDs public_oe property

Returns an array of GUIDs, each referring to an actual tk2dFontData object This object contains the actual font for the platform.
public string[] fontPlatformGUIDs
Résultat string[]

fontPlatforms public_oe property

Returns an array of platform names.
public string[] fontPlatforms
Résultat string[]

gradientCount public_oe property

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
Résultat int

gradientTexture public_oe property

Reference to gradient texture
public Texture2D,UnityEngine gradientTexture
Résultat UnityEngine.Texture2D

hasPlatformData public_oe property

public bool hasPlatformData
Résultat bool

kerning public_oe property

Array of tk2dFontKerning
public tk2dFontKerning[], kerning
Résultat tk2dFontKerning[],

largestWidth public_oe property

Width of the largest character
public float largestWidth
Résultat float

lineHeight public_oe property

The height of the line in local units.
public float lineHeight
Résultat float

managedFont public_oe property

public bool managedFont
Résultat bool

material public_oe property

Material used by this font
public Material material
Résultat Material

needMaterialInstance public_oe property

public bool needMaterialInstance
Résultat bool

spriteCollection public_oe property

public tk2dSpriteCollectionData, spriteCollection
Résultat tk2dSpriteCollectionData,

texelSize public_oe property

public Vector2 texelSize
Résultat Vector2

textureGradients public_oe property

Does this font have gradients? Used to determine if second uv channel is necessary.
public bool textureGradients
Résultat bool

useDictionary public_oe property

Whether this font uses the dictionary or an array for character lookup.
public bool useDictionary
Résultat bool