Hi Everyone,
When I tried to use Destroy(GameObject.Find("UI Root(2D)")), the game objects under the NGUI root are all deleted in Editor's play mode.
However, in iOS device, this does not work. All the UI elements are still there on screen.
Another thing is, I was able to destroy UI elements in a scrolling list by un-parenting the gameobject first and then delete it.
But I tried the same approach with the whole NGUI root hierarchy by collecting all the gameobjects with the same layer, then go through each one of them to un-parent and destroy them. It didn't work.
Can anyone shade some lights on this problem?
Thanks.
Richard