You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Imagine Engine doesn't rely on the default system image loading mechanism (using UIImage(named:) on iOS) loading textures from an asset catalog is not super easy. While possible it requires you to create Animation or Texture instances using Image, like this:
Looks like we have run out of luck with this one: asset catalog is compiled as Assets.car file. That file is Apple's proprietary format which could be opened with CUICatalog, which is private class. If we use private class, it is very likely that apps with this will not be passed through AppStore review process. 🧐
@jussi80 I don't think we should attempt to parse the asset catalogs ourselves. There's the NSDataAsset class which provides programmatic access to an asset catalog, it should be able to be used to access the data we need to load a texture 🙂
Since Imagine Engine doesn't rely on the default system image loading mechanism (using
UIImage(named:)
on iOS) loading textures from an asset catalog is not super easy. While possible it requires you to createAnimation
orTexture
instances usingImage
, like this:It would be nicer if Imagine Engine could automatically search the app's asset catalog for an image with a given name, so that you could simply use:
The text was updated successfully, but these errors were encountered: