Ship the WeChat hot-update catalogs and the camp, TideWhale T2, UI atlas, and animation-lab work.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -15,6 +15,7 @@ namespace HotUpdate.UI
|
||||
readonly Dictionary<string, GameObject> _opened = new Dictionary<string, GameObject>(StringComparer.Ordinal);
|
||||
Transform _root;
|
||||
UiPrefabLoader _loader;
|
||||
public UiAtlasLoader Atlases { get; private set; }
|
||||
readonly HashSet<string> _loading = new HashSet<string>(StringComparer.Ordinal);
|
||||
public string Theme { get; private set; } = UiThemeCatalog.Candy;
|
||||
|
||||
@@ -23,6 +24,9 @@ namespace HotUpdate.UI
|
||||
Instance = this;
|
||||
_root = root;
|
||||
_loader = loader ?? new UiPrefabLoader();
|
||||
Atlases = GetComponent<UiAtlasLoader>();
|
||||
if (Atlases == null) Atlases = gameObject.AddComponent<UiAtlasLoader>();
|
||||
Atlases.Init(_loader.PreferredPackage);
|
||||
Theme = UiThemeCatalog.Normalize(theme);
|
||||
}
|
||||
|
||||
@@ -62,6 +66,7 @@ namespace HotUpdate.UI
|
||||
if (siblingIndex >= 0)
|
||||
go.transform.SetSiblingIndex(siblingIndex);
|
||||
_opened[prefabName] = go;
|
||||
yield return Atlases.WaitForPending();
|
||||
onOpened?.Invoke(go);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user