countdown to persist through scenes
Hi, I have a countdown clock in my game which I want to run through multiple scenes while keeping the time from the previous scenes. I have a timer coded, and I have a DontDestroyOnLoad added. I've...
View ArticleChanging something in another scene by answering correctly with GlobalManager
I'm kind of a noob and I'm making a guess the movie game, and I wondered if anybody know how I can make it so. When a person answers correctly, the button with a image on the other scene needs to...
View ArticleMultiplayer shows different scenes
My problem is that whenever a player switchen to a different scene, he can still see all the other players from the previous scene walking around and the other player can see him, although they are in...
View ArticleHow to have a script run between 2 scenes
Hi, Iv'e made a script where it plays 4 different types of music one after each other and added that to an empty game object. I wan't that game object to survive through different scenes. Iv'e tried...
View ArticleUI Button OnClick event missing after changing back from another scene
I have 2 scenes which is a "Level Menu" scene, and the "Level" scene. In the "Level Menu" scene, I have a button in the "Level Menu" which will change the current scene to "Level". In the OnClick part...
View ArticleDontDestroyOnLoad() and GameObject.FindGameObjectWithTag() [C#]
Hey everybody ! I have an issue with DontDestroyOnLoad : In the First Scene, the payer have the possibility to enter in a battle, which take place in an other scene. In order to save all mobs in the...
View ArticleDestroy object with dontdestroyonload
Hi, I have some script that is attached to an object so that it isn't destroyed as you play through level 1, level 2, level 3 and so on. However I want this object to be destroyed when the player...
View ArticlePlayerPrefs to save setActive state
Hi, I have some script that is run from my Game scene which hides a gameObject on my Menu scene. However each time the game is closed and reopened the gameObject in my Menu scene is set back to active....
View ArticleDontDestroyOnLoad help with UI button
Is there a way to save my power Up button (UI buttons) through scenes. You see I have about two buttons that once you click on one it activates a power up on my player, however my power up buttons are...
View ArticleDon't understand how to use DontDestroyOnLoad.
So I've been trying to understand how to get DontDestroyOnLoad to work for a while now and I'm still confused. I do understand that you can use it to make data persist through the transition of scene...
View ArticleKeep some UI alive between scenes
I was planning to keep one UI element alive between scenes using `DontDestroyOnLoad` but that is causing warnings and essentially not working. I wonder if I need to call `DontDestroyOnLoad` on the...
View ArticlePoints and lifes C#
Hi! Im "new" in Unity and I ony once hear about do not destroy on load. So like in topic I need help with makeing points and lifes in game, its working like quiz in 3D and You have on trigger enter and...
View ArticleSingleton / DontDestroyOnLoad / Instantiation referencing
Firstly, I'm sure this has been asked, and most likely answered in some way/shape/form. I've tried Googling it, I've tried searching the forums for it, and I can't find the answer. If it's out there...
View Articlehow to keep lightmap on Don'tDestroyOnLoad object or reload it from assets...
lightmaps are associated with each scene. when loading a new scene, the previous scene's lightmaps are removed, even on an object using "Don'tDestroyOnLoad". Whats up with that? The lightmaps are still...
View ArticleDontDestroyOnLoad() not working?
Hi, so I made a 'reload' script :P that happens when the player collides with the enemy in that level. "level_x" been the level number `void OnTriggerEnter2D(Collider2D other) {...
View ArticleGameObject.Find Unity 5.3+
I have a GameManager GO with a GameManagerScript on it, and i use DontDestroyOnLoad in that script. GameManager is stored in a DontDestroyOnLoad scene and i want to use GameObject.Find to find a...
View ArticleI need an object to be recreated every scene reload
using UnityEngine; using System.Collections; public class idek : MonoBehaviour { float timer; public double waitingTime = 0.0; void Awake() { DontDestroyOnLoad(transform.gameObject); } void Update() {...
View ArticleProblems with DontDestroyOnLoad
I have two problems with a system I've made, using the DontDestroyOnLoad: 1st. I wanted to make a respawn function by loading the level you currently are on but that makes the object that have the DDOL...
View ArticleDestroy object when a new scene loads
Hi currently I have a timer that has dontDestroyOnLoad Function in order for it to cycle those scenes that needed a timer, my question is how can I destroy my timer when the game loads the main menu...
View ArticleHow can I destroy a GameObject after a scene is loaded?
Hi, I'm having a hard time with this issue, currently I have Timer as the top layer inside it is the text and the image for my timer. i use dontDestroyOnLoad for my timer to pass through some scenes...
View Article