文档

Unity Engine

Unity Engine

HasCharacter

Function to check if a certain character exists in the font asset.
阅读时间1 分钟最后更新于 1 个月前

Definition

HasCharacter(int)

Function to check if a certain character exists in the font asset.
public bool HasCharacter(int character)

Parameters

character

Returns

Type

Description

bool

HasCharacter(char, bool, bool)

Function to check if a character is contained in the font asset with the option to also check potential local fallbacks.
public bool HasCharacter(char character, bool searchFallbacks = false, bool tryAddCharacter = false)

Parameters

character


searchFallbacks


tryAddCharacter

Returns

Type

Description

bool

HasCharacter(uint, bool, bool)

Function to check if a character is contained in the font asset with the option to also check potential local fallbacks.
public bool HasCharacter(uint character, bool searchFallbacks = false, bool tryAddCharacter = false)

Parameters

character


searchFallbacks


tryAddCharacter

Returns

Type

Description

bool