I am trying to use ODR in my game that does not use xcassets.
So, I have a texture with a tag (for example, "tutorial"), made ODR in the project settings and used the code below to load it:
NSBundleResourceRequest *resourceRequest = [[NSBundleResourceRequest alloc] initWithTags:tags]; [resourceRequest conditionallyBeginAccessingResourcesWithCompletionHandler:^(BOOL resourcesAvailable) { if (resourcesAvailable) {
The main package does not contain texture (I watched the package in the simulator folder). After calling the code above Xcode and the logs, report that it has been successfully downloaded and ready to use.
If the comment // Upload the texture I need to call my code to load the texture into video memory, but the problem is that I can not get the exact location of the downloaded file to do this.
Is there any way to find out the location of the loaded assets?
source share