Xamarin Forms UrhoSharp - How to set up the Assets Folder

AbhiNilAbhiNil CAMember ✭✭✭

Hey guys ,

I'm trying to use a folder in a XF - Urho Application but its not working .

UrhoSurface.Show<UrhoApp>(new ApplicationOptions("Data"));

var cache = ResourceCache;

planeObject.Model = cache.GetModel("Models/Plane.mdl");

In my Droid Assets , i created the Folder "Data" and added the Models etc...

Am i missing something ?

Answers

  • DonGilliusDonGillius BEMember

    Hi,
    i'm having the same issue, did you solve this??

  • LukasFrankenLukasFranken USMember

    same issue here. trying to figure out what could cause the issue, unfortunately the sample project for urho.forms does not include any resources...

  • Aaike64Aaike64 MXMember

    Hello, I'm with the same problem. This make me think if UrhoSharp is really being used.

  • Aaike64Aaike64 MXMember

    Ok, it Works now.
    **
    App.cs**
    assis = await urhoSurface.Show(new ApplicationOptions(assetsFolder: "Data") { Orientation = ApplicationOptions.OrientationType.LandscapeAndPortrait });

    Asistente1.cs
    Urho.Urho2D.AnimationSet2D animationSet = cache.GetAnimationSet2D("Asis1.scml");

    I have the file on the Assets folder of the Android Project

Sign In or Register to comment.