UiImageResolver

Resolves a .ui image reference — a project-relative path or asset://<guid> — to a decoded SKImage for the renderer to draw. Decoded images are cached by the reference string for the resolver's lifetime.

Remarks

The source file is preferred (loose projects, the editor, the CLI). When only the imported artifact is available — a packed game — a raw-image artifact still decodes; a baked .amtex block does not and yields null until the world-space texture path is wired through here.

Public Methods

Resolve

public SKImage? Resolve(string src)

Resolves src to an image, or null.

Parameters:

  • src (string): A project-relative path or asset://<guid>.

Returns: SKImage?