Method SearchForSpriteByHashCode
SearchForSpriteByHashCode(TMP_SpriteAsset, int, bool, out int)
Search the given sprite asset and fallbacks for a sprite whose hash code value of its name matches the target hash code.
Declaration
public static TMP_SpriteAsset SearchForSpriteByHashCode(TMP_SpriteAsset spriteAsset, int hashCode, bool includeFallbacks, out int spriteIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| TMP_SpriteAsset | spriteAsset | The Sprite Asset to search for the given sprite whose name matches the hashcode value |
| int | hashCode | The hash code value matching the name of the sprite |
| bool | includeFallbacks | Include fallback sprite assets in the search |
| int | spriteIndex | The index of the sprite matching the provided hash code |
Returns
| Type | Description |
|---|---|
| TMP_SpriteAsset | The Sprite Asset that contains the sprite |