Hi,
Is there a way to refresh (wipe clean) the screen other than relaunch or using the storyboard and purging a scene?
Thanks,
David
Hi,
Is there a way to refresh (wipe clean) the screen other than relaunch or using the storyboard and purging a scene?
Thanks,
David
Well if you are putting all of your display elements in a storyboard group, the transition should get rid of everything and transition a blank screen if you have a blank scene. If you have any native objects, like native.newMapView, or native.newTextField() you are responsible for removing them yourself. If you create display objects and do not add them to the storyboard group you would have to remove them yourself.
The short answer is to wipe the screen, you need all of your objects that can be managed in a group, in a group and then you can remove the group to remove its contents (except for the native things).
Rob
Thanks, Rob. I was trying to see if there is a quick way to wipe the screen clean, but your answers are helpful since it is a nice summary of how to remove various objects.
Well if you are putting all of your display elements in a storyboard group, the transition should get rid of everything and transition a blank screen if you have a blank scene. If you have any native objects, like native.newMapView, or native.newTextField() you are responsible for removing them yourself. If you create display objects and do not add them to the storyboard group you would have to remove them yourself.
The short answer is to wipe the screen, you need all of your objects that can be managed in a group, in a group and then you can remove the group to remove its contents (except for the native things).
Rob
Thanks, Rob. I was trying to see if there is a quick way to wipe the screen clean, but your answers are helpful since it is a nice summary of how to remove various objects.