fix(UXAssist): preserve calling assembly semantics in Util facade

This commit is contained in:
2026-06-23 08:09:53 +08:00
parent ed916ebe7f
commit 439d74c817
4 changed files with 4 additions and 4 deletions
+4 -4
View File
@@ -21,7 +21,7 @@ public static class Util
[Obsolete("Use ResourceUtil.LoadEmbeddedResource")]
public static byte[] LoadEmbeddedResource(string path, Assembly assembly = null)
=> ResourceUtil.LoadEmbeddedResource(path, assembly);
=> ResourceUtil.LoadEmbeddedResource(path, assembly ?? Assembly.GetCallingAssembly());
[Obsolete("Use ResourceUtil.LoadTexture")]
public static Texture2D LoadTexture(string path)
@@ -33,13 +33,13 @@ public static class Util
[Obsolete("Use ResourceUtil.LoadEmbeddedTexture")]
public static Texture2D LoadEmbeddedTexture(string path, Assembly assembly = null)
=> ResourceUtil.LoadEmbeddedTexture(path, assembly);
=> ResourceUtil.LoadEmbeddedTexture(path, assembly ?? Assembly.GetCallingAssembly());
[Obsolete("Use ResourceUtil.LoadEmbeddedSprite")]
public static Sprite LoadEmbeddedSprite(string path, Assembly assembly = null)
=> ResourceUtil.LoadEmbeddedSprite(path, assembly);
=> ResourceUtil.LoadEmbeddedSprite(path, assembly ?? Assembly.GetCallingAssembly());
[Obsolete("Use PathUtil.PluginFolder")]
public static string PluginFolder(Assembly assembly = null)
=> PathUtil.PluginFolder(assembly);
=> PathUtil.PluginFolder(assembly ?? Assembly.GetCallingAssembly());
}