What do you want to save?
Add Code snippet
New code examples
-
C# 2021-11-19 09:47:30
how to switch scenes when you die in unity 3d
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; //Load based on name of scene public class SceneScript { public void ChangeScene(string scene = "") { SceneManager.LoadSc... Add solution -
-
C# 2021-11-02 18:44:10
unity load multiple scenes
It is recommended to avoid using DontDestroyOnLoad to persist manager GameObjects that you want to survive across scene loads. Instead, create a manager scene that has all your managers and use SceneManager.LoadScene(<path>, LoadSceneMode.Additiv... Add solution -
Other 2021-10-30 04:59:06
how to make a tutorial scene appear once in unity
using System; using UnityEngine; using UnityEngine.SceneManagement; public class GameLaunchCounter : MonoBehaviour { string SessionNumber = PlayerPrefs.GetString("unity.player_session_count"); private void Start() { if... Add solution