Forum Libraries, Components, and Plugins
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Urho3d include Assets Error

Hello,

I need support with the following error in Android please

I tried several routes already and I can't find the detail. I already read examples but still marks the error.

Code:
async void StartUrhoApp()
{
urhoApp = await urhoSurface.Show(new ApplicationOptions(assetsFolder: "Data") { Orientation = ApplicationOptions.OrientationType.LandscapeAndPortrait });

}

Include model :

                     var defensa = scene.CreateChild("Defensa");
        defensa.Position = new Vector3(0, 0, 0);
        StaticModel boxObjectG = defensa.CreateComponent<StaticModel>();
        boxObjectG.Model = ResourceCache.GetModel("defensa.mdl");

Thank you

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai

    What's the build action of your .mdl files?
    I noticed that you named another Assets folder in the Assets folder. Will this cause a path issue?
    You could follow this sample's structure to build your own catalogs:
    https://github.com/xamarin/urho-samples/tree/master/SamplyGame/Assets

  • RamnPrezRamnPrez USMember ✭✭

    Hi,
    try several examples

    This build action

    another asset folder is for this error

    add these folders

    thanks for your support

  • RamnPrezRamnPrez USMember ✭✭

    Compile in Visual Studio on Mac and it works fine.

    Urho or VS in Windows will have a cache that needs to be cleared?

    Thank you

Sign In or Register to comment.