I'm working on an app that uses the UrhoSharp lib in Android platform. I'm not able to get my resources from the Assets/Data folder. I don't know what I'm doing wrong... These are the steps that I followed:
- I added the png image in the "Assets/Data" folder on my Android project. That image has the "AndroidAsset" build action and "Copy to output directory" as "Copy if newer".
- On the PCL project I use the following line to initialize the Urho3D engine: UrhoSurface.RunInActivity(new ApplicationOptions("Data")) after the UrhoEngine.Init().
- And from my code I try to access my resource with the following line: ResourceCache.GetSprite2D("MyImage.png", true) and the answer is always a null.
- If I try to get a resource from "CoreData" folder, I don't have any problem and I can get it. (ResourceCache.GetSprite2D("Textures/Spot.png", true) for example...)
I don't know what to do. For sure, I'm don't know what I'm doing wrong... Some help will be very appreciated. THANKS!