# HasCharacter

> Function to check if a certain character exists in the font asset.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.TextCore.Text](/engine/6000.7/script-reference/unityengine/textcore/text.md)
* **Assembly:** UnityEngine.TextCoreTextEngineModule

## HasCharacter(int)

Function to check if a certain character exists in the font asset.

```csharp
public bool HasCharacter(int character)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

## 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.

```csharp
public bool HasCharacter(char character, bool searchFallbacks = false, bool tryAddCharacter = false)
```

### Parameters

**** (\[char]\(https\://learn.microsoft.com/dotnet/api/system.char)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

## 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.

```csharp
public bool HasCharacter(uint character, bool searchFallbacks = false, bool tryAddCharacter = false)
```

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |
