Use custom shortcut icons reliably (primarily Android) when calling AppShortcutsAddShortcut.
AppShortcutsAddShortcut
AppShortcutsGetAddShortcutError (optional)
AppShortcutsGetAddShortcutError
Open: Window → Essential Kit → Settings → App Shortcuts
Add your shortcut icon textures to the Icons list.
Call AppShortcutsAddShortcut.
Set iconFileName to the icon file name you want to use (must include extension, e.g., play.png).
iconFileName
play.png
If AppShortcutsAddShortcut fails, call AppShortcutsGetAddShortcutError to read errorCode + errorDescription.
errorCode
errorDescription
iconFileName must refer to a texture present in the AppShortcuts settings Icons list; otherwise the icon won’t show up.
Last updated 1 month ago