Do I have to delete it before closing the application? Or after GB leaves, GB can collect them?
How Does DontDestroyOnLoad Work? Is a Referee Council Content? Instant objects (by default) are deleted in a scene when a new view (level) is deleted. is loaded. Using DontDestroyOnLoad, you are asking not to follow this behavior, so that the object can be consistently between levels. You can always delete it by calling the deleted () function.
From:
Object object can not be automatically deleted when loading a new view When loading a new level, all the objects in the scene are destroyed , Then the objects load in the new level. To keep the object safe during a loading call, download it. If the object is a component or a game object then its entire compliance hierarchy will not be destroyed.
Using UnityEngine; Using System.Collections; Examples of public class class: monobehavier {zero awake () {dontdstoyoff (transformform object); }}
Comments
Post a Comment