Table of Contents

Method TryLoadAddressableFont

Namespace
Velvet
Assembly
Velvet.Docs.dll

TryLoadAddressableFont(string?, out FontAsset?)

Loads a Font Asset by Addressables key (for the font-[addr:<key>] arbitrary form), caching the result. Returns false and logs a warning when the key does not resolve.

public static bool TryLoadAddressableFont(string? key, out FontAsset? asset)

Parameters

key string
asset FontAsset

Returns

bool