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
- Type: Method
- Namespace: UnityEngine.TextCore.Text
- Assembly: UnityEngine.TextCoreTextEngineModule
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
String containing the characters to check.
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
Returns
Type | Description |
|---|---|
| bool | Returns 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
String containing the characters to check
Returns
Type | Description |
|---|---|
| bool |