When I tried to make a empty GameObject go to another scene with DontDestroyOnLoad(), it doesnt worked.
It shows up under the DontDestroyOnLoad in the hierarchy, but if I change the scene it isnt there anymore. Maybe Im using it wrong, because Im new to Unity, but I think yoou guys can help me
Here my Code:
using UnityEngine;
using System.Collections;
public class dontdestroyonload : MonoBehaviour{
void Awake(){
DontDestroyOnLoad(gameObject);
}
}