Class EmojiDatabase
A ScriptableObject that holds a flat list of emoji data entries.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.AppUI.Core
Assembly: Unity.AppUI.dll
Syntax
[CreateAssetMenu(menuName = "App UI/Emoji Database", fileName = "EmojiDatabase")]
public class EmojiDatabase : ScriptableObject
Remarks
Unity does not support serialized dictionaries natively, so the data is stored as an array of EmojiData structs keyed by the emoji character.
Methods
GetEmojiCount()
Returns the number of emoji entries in the database.
Declaration
public int GetEmojiCount()
Returns
| Type | Description |
|---|---|
| int | The total number of emoji entries in the database. |
GetEmojis(string)
Returns an enumerable of all emoji entries in the database.
Declaration
public IEnumerable<EmojiData> GetEmojis(string query = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | query | An optional search string used to filter emojis by name. When |
Returns
| Type | Description |
|---|---|
| IEnumerable<EmojiData> | An enumerable of EmojiData entries matching the query, or all entries if no query is provided. |