Dynamic load model
Click on the button to delete the original model to replace the next
How to write this click on the button script?
At present can realize two model switching
I use is
After scanning Instantiate (Resources. The Load (" model name ")) as under the gameobject to the ImageTarget
Click on the button made after judgment Desdroy bool variable current objects, another generation, and for the bool to assignment
But this method is more than words can't do the use, and can only have two model and there is no general
Would like to ask everyone here if the model is more, to realize the function, click on the button to switch to do?
Please give a train of thought, thank you!
CodePudding user response:
DDDDDDDDDDDD