Hey guys have do not destroy on a game object, the do not destroy thing comes up in my hirackey yet when the next scene loads with “PhotonNetwork.loadscene”
the Object disappears and gets deleted on scene load When I need the scene to stay in play.
nothing else delete this GameObject.
'`using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DoNotDestroy : MonoBehaviour {
void Awake() {
DontDestroyOnLoad(transform.gameObject);
}
}`