Custom Shortcut Icons (Settings + AddShortcut)
Goal
Use custom shortcut icons reliably (primarily Android) when calling AppShortcutsAddShortcut.
Actions Used
AppShortcutsAddShortcutAppShortcutsGetAddShortcutError(optional)
Setup (Essential Kit Settings)
Open: Window → Essential Kit → Settings → App Shortcuts
Add your shortcut icon textures to the Icons list.
FSM Steps
Call
AppShortcutsAddShortcut.Set
iconFileNameto the icon file name you want to use (must include extension, e.g.,play.png).
Failure Handling
If
AppShortcutsAddShortcutfails, callAppShortcutsGetAddShortcutErrorto readerrorCode+errorDescription.
Notes
iconFileNamemust refer to a texture present in the AppShortcuts settings Icons list; otherwise the icon won’t show up.
Last updated
Was this helpful?