Documentation Home
v1.22 v1.23
v1.22 v1.23

Icons Library

The SkyReal icon library provides a shared registry for the icons used by extensions. Each registered icon has a display name, a unique identifier and a reference to its Texture2D asset.

The registry is built from auto-registered SkrIconsLibrary Data Assets. SkyReal uses these libraries to find, load and identify extension icons at runtime.

Important: Icons are never discovered automatically. Referencing a texture from a widget, another Data Asset or a command description does not add it to the icon registry. You must register every extension icon explicitly, including the Texture and Off Texture assets used by commands.

Creating an Icons Library

  1. Store the icon textures inside your extension plugin. A dedicated Icons folder is recommended.

  2. In the extension's RegistrableAssets directory, create a Data Asset that inherits from SkrIconsLibrary.

  3. Set Icons Import Path to the Unreal content path containing the icon textures.

  4. In the Data Asset Details panel, click Import Default Icons From Path.

  5. Check the generated entries in the Icons array.

  6. Save the Data Asset.

Because the library is located in RegistrableAssets, it is registered automatically when the extension is loaded.

Icon Entries

Each entry in the Icons array contains:

  • Icon Name — Human-readable name used to identify the icon.

  • Icon Guid — Unique identifier generated for the entry.

  • Icon Texture — Reference to the registered Texture2D asset.

When an icon is imported, SkyReal generates its default name from the texture asset name and removes common prefixes such as T_ or Font Awesome prefixes. The generated name can be edited afterward.

Icons can also be added manually to the Icons array when automatic folder import is not appropriate.

Updating the Library

Import Default Icons From Path scans the configured folder and adds textures that are not already present in the library.

The folder is not monitored automatically. Run the import action again whenever you add a new icon texture to the extension.

The import action only adds missing textures. It does not remove obsolete entries or automatically update existing ones, so review the Icons array after reorganizing or deleting assets.

Registering Command Icons

Command icons follow exactly the same rule as every other extension icon.

After assigning Texture or Off Texture in a SkrSdkCommandDescription:

  1. Make sure both textures belong to the command's extension or one of its declared extension dependencies.

  2. Add them to a registered SkrIconsLibrary.

  3. Run Import Default Icons From Path, or add the entries manually.

  4. Save the icon library and the command description.

Assigning the textures to the command description is not sufficient on its own. SkyReal does not inspect command descriptions to discover icons.

Accessing Icons in Blueprint

The SkrIconsHelper Blueprint library provides the following functions:

  • Get All Icons Identifiers — Returns every icon from all registered icon libraries.

  • Try Get Texture Icon Identifier — Finds the identifier associated with a texture.

  • Try Get Guid Icon Identifier — Finds an icon from its GUID.

  • Try Get Icon Path — Returns the Unreal package path of an icon texture.

Use Get Icon Identifier Properties to retrieve an identifier's name, GUID and texture.

Common Issues

An icon is missing at runtime

  • Check that the SkrIconsLibrary asset is inside RegistrableAssets.

  • Check that the texture appears in the library's Icons array.

  • Run Import Default Icons From Path again after adding new textures.

  • Make sure Icons Import Path is an Unreal content path and points to the correct folder.

  • Make sure the asset is a Texture2D.

A command icon is missing

  • Register the command's Texture and Off Texture in an icon library.

  • Do not assume that assigning them to SkrSdkCommandDescription registers them automatically.

  • Check that the command extension and the extension containing the icons are both loaded and declared correctly in SkrExtensions.json.

The icon exists in the editor but not in SkyReal VR

All icon textures must belong to the extension or one of its declared extension dependencies. References to Engine assets or assets from Unreal plugins that are not packaged as SkyReal extensions are not guaranteed to be available at runtime.