IGameAssets.LoadByPath method
Loads an arbitrary game asset (atlas Sprite or standalone Texture2D) by its raw ZResLoader address, for content that has no dedicated id-based loader above — e.g. a dungeon crest whose path comes from a game table (TeamTargetTable.Icon / MatchPic). The asset type is auto-detected (Texture2D first, Sprite fallback). Returns null while loading, on failure, or for an empty path; safe to call every frame (the result is cached by path).
public object? LoadByPath(string assetPath, out UvRect uv)| parameter | description |
|---|---|
| assetPath | The ZResLoader address (a table’s icon/pic path). |
| uv | The UV sub-rect for the asset within its atlas (normalised, bottom-left origin), or (0,0,1,1) for a standalone texture / until the load resolves. |
See Also
Section titled “See Also”- struct UvRect
- interface IGameAssets
- namespace Stellar.Abstractions.Services