C# 클래스 tk2dFontData, Malisse

상속: MonoBehaviour
파일 보기 프로젝트 열기: Collegiennes/Malisse 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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