Log in or register to post comments

canvas problem in unity 2017.2

October 22, 2017 - 2:30pm #1

Hello Guys

i'm developing an simple app for android and now for a week a'm having trouble with canvas.

when tracking found canvas shows but when tracking lost canvas won't disappear. iv'e tried this solution :

Canvas[] canvasObjects = GetComponentsInChildren<Canvas>();

foreach(Canvas canvas in canvasObjects)

{

canvas.enabled = true;

}

Canvas[] canvasObjects = GetComponentsInChildren<Canvas>();

foreach(Canvas canvas in canvasObjects)

{

canvas.enabled = false;

}

however in this version vuforia added similiar code but both of them didn't work for me and canvas still visible any solution and aidea? 

please help me

canvas problem in unity 2017.2

October 31, 2017 - 7:00pm #3

I've been having weird stuff going on with Canvas too. All my targets are rendering their children but any world space Canvases won't render. While playing the scene in Unity, if I turn the object off and back on again in the inspector, the world space Canvas then renders. I tried scripting the objects to turn themselves off and back on upon detection but that didn't fix it either. 

canvas problem in unity 2017.2

October 23, 2017 - 9:46am #2

Hello xhtml,

Is this code attached to the correct object (the one with the Canvas you want to disable in its children)? Have you confirmed the code is doing what you want without using Vuforia to trigger it?

Thanks,

-Vuforia Support

Log in or register to post comments