Wikitude
play_for_work
Forum
FAQ
Documentation
Download
wikitude.com
How can we help you today?
Enter your search term here...
Search
Start a new topic
Discussions
Wikitude SDK (Android, iOS, UWP)
3D Model Questions or Problems
Destroy a 3d Model Properly
E
Emilien DEGUT
started a topic
over 5 years ago
Destroy a 3d Model Properly
2 Comments
Oldest First
Popular
Newest First
Sorted by
Oldest First
E
Emilien DEGUT
said
over 5 years ago
Hi,
I wonder how to destroy a 3D Model properly in ArchectView.
I create a model with :
new AR.Model("assets/model.wt3", {
onLoaded: this.loadingStep,
scale: {
x: 1,
y: 1,
z: 1
},
translate: {
x: 0.0,
y: 0.0,
z: 0.7
}
});
I want to destroy it when I quit ArchitectView, but where can I do that?
For information I use Xamarin.
Regards,
Emilien
E
Emilien DEGUT
said
over 5 years ago
Hello,
I found the solution to my problem, in Xamarin (for iOS) I code this function :
public void StopAR()
{
if ( architectView.IsRunning ) {
foreach (UIView v in architectView.Subviews) {
if (v.GetType().Equals(typeof(UIWebView))) {
((UIWebView)v).EvaluateJavascript (" AR.context.destroyAll();");
}
}
architectView.Stop ();
architectView = null;
}
}
I hope it will help some of you!
Emilien
Login
or
Signup
to post a comment
More topics in
3D Model Questions or Problems
Question about wikitude studio
3D Model can't animate on Geo location
3D Modeling
KML upload won't save in world
Wikitude SDK 2.0: 3D content misplaced
3D lighting and material
.addCamDrawable() and 3D models
how to autorefresh a KML URL based world ?
3D model not showing in GPS sample
Problems AR.Model
See all 383 topics
© 2020
Wikitude
GmbH ·
Imprint
·
Legal
Emilien DEGUT