unity get all dontdestroyonload code example Example: dontdestroyonload unity DontDestroyOnLoad(this.gameObject);