Quantcast
Channel: Questions in topic: "dontdestroyonload"
Viewing all articles
Browse latest Browse all 416

Do not destroy is not working ?

$
0
0
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); } }`

Viewing all articles
Browse latest Browse all 416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>