Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Visual Studio 2019 Community and Xamarin + Urho -- Could not find resource #406

Closed
wide-landscape opened this issue Aug 29, 2020 · 0 comments

Comments

@wide-landscape
Copy link

Hello,

Using Visual Studio 2019 Community and Xamarin + Urho, I just started a small app.

I want to display an object (here a sphere) and apply a texture from a .png file.
I'm trying to load an image from the resources with this line:

var i = cache.GetImage("Resources/images/world.png");

but I'm getting the following error while running (debug) on Android:

System.Exception: 'Could not find resource Resources/images/world.png. You can omit this exception by subscribing to Urho.Application.UnhandledException event and set Handled property to True.

The whole VS2019 files are available there:
https://github.com/wide-landscape/3Dlandscape

Please let me know if you need more details.
I would appreciate any suggestion.

Thanks in advance,

James

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant