Published
- 1 min read
unity dontdestroyonload
The solution for this is noted below
unity dontdestroyonload
Solution
private void Awake(){
if(instance == null){
instance = this;
DontDestroyOnLoad(instance);
}
else{
Destroy(gameObject)
}
}
Try other methods by searching on the site. That is if this doesn’t work