By arunvgopal
on Tue, 12/02/2014 - 12:20
Pls help .....Im developing an android AR app in which there are two models (model_a and model_b) and 2 GUI (GUI_a and GUI_b)buttons.My models gets detected and it shows both models.But what i want is..in default it should show only model_a and when i tap GUI_b then model_a should get replaced by model_b and vice versa.Please help me with the script and the steps to make it work right.I hope i will get a positive reply soon ....
GUI Buttons to change models
Are you working in Unity or native android? If in unity create a variable array and add models. You can set a bool or a playerpref and control the instantiating model. Now you have to instantiate the model depending on the bool or the playerprefs and destroy the previous.