Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HasCharacter

Function to check if a certain character exists in the font asset.
Read time 1 minuteLast updated 10 days ago

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