public static void LoadSprite(this ResourceComponent resourceComponent, string assetName, LoadAssetCallbacks loadAssetCallbacks, object userdata) { resourceComponent.LoadAsset(AssetUtility.GetUISpritAsset(assetName), typeof(Sprite), loadAssetCallbacks, userdata); }
public static void LoadPrefab(this ResourceComponent resourceComponent, string assetName, LoadAssetCallbacks loadAssetCallbacks, object userdata) { resourceComponent.LoadAsset(AssetUtility.GetUIItemAsset(assetName), typeof(GameObject), loadAssetCallbacks, userdata); }