Start a new topic

Destroy a 3d Model Properly

Destroy a 3d Model Properly


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

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

 

 

 
Login or Signup to post a comment