Log in or register to post comments

App freezes if i change from AR Camera to a standart unity Camera

September 1, 2013 - 4:15am #1

Hello

In my app i want to change from ar camera to a standart unity camera (with a gyroscope skript for a panorama view) but the app freezes if im doing so. Im using the folowing code inside a button appering if a certain object is tracked.

MoveCam.enabled=ture;

ARCAM.enabled=false;

off course i have decalred 2 public variable containig the corresponding camera gameobjects.

Any idear wahts going wrong? 

App freezes if i change from AR Camera to a standart unity Camer

September 4, 2013 - 3:47am #3

Thank you at the moment i keep both cameras enabled at the same time and disable the gamobject the move camera is pointing at. This workaround seams to work. but i will try your suggestion.

App freezes if i change from AR Camera to a standart unity Camer

September 1, 2013 - 9:31am #2

I do the same thing in a project and it works just fine.

the only thing different is that I'm using

gameObject.SetActive (false);

instead of gameObject.enabled. See here

Best,

Stefan

Log in or register to post comments