Start a new topic

appropriate path for Load method

I'm new into wikitude .

I have a problem in loading samples;

here is codes that I checked.

architectView.Load("file:///android_assets/01_ImageRecognition_1_ImageOnTarget/index.html");

and

architectView.Load("/Assets/01_ImageRecognition_1_ImageOnTarget/index.html");

none of them woeks for me.


Hello Hamid,

I believe the following code is what you are looking for

 

var path = NSBundle.MainBundle.BundleUrl.AbsoluteString +"1_ImageRecognition_1_ImageOnTarget/index.html";
loadingArchitectWorldNavigation = architectView.LoadArchitectWorldFromURL(NSUrl.FromString(path), Wikitude.Architect.WTFeatures.WTFeature_ImageTracking);

 

Thanks

Eva


1 person likes this

 Hi Hamid,


In order to be able to load the file properly you need to put the absolute path of where the file is stored.  Since you are new into Wikitude, I would also suggest you read our documentation and download our sample code to see how it works there.


Thanks

Eva

I browsed all samples but I couldn't find how should I address assets.

load.PNG
(46 KB)
Login or Signup to post a comment