Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HasCharacters

Function to check if certain characters exists in the font asset. Function returns a list of missing characters.
Read time 1 minuteLast updated 12 days ago

Definition

HasCharacters(string, List<char>)

Function to check if certain characters exists in the font asset. Function returns a list of missing characters.
public bool HasCharacters(string text, out List<char> missingCharacters)

Parameters

text

String containing the characters to check.

missingCharacters

List of missing characters.

Returns

Type

Description

bool

HasCharacters(string, uint[], bool, bool)

Function to check if the characters in the given string are contained in the font asset with the option to also check its potential local fallbacks.
public bool HasCharacters(string text, out uint[] missingCharacters, bool searchFallbacks = false, bool tryAddCharacter = false)

Parameters

text

String containing the characters to check.

missingCharacters

Array containing the unicode values of the missing characters.

searchFallbacks

Determines if fallback font assets assigned to this font asset should be searched.

tryAddCharacter

Returns

Type

Description

boolReturns true if all requested characters are available in the font asset and potential fallbacks.

HasCharacters(string)

Function to check if certain characters exists in the font asset. Function returns false if any characters are missing.
public bool HasCharacters(string text)

Parameters

text

String containing the characters to check

Returns

Type

Description

bool