Quantcast
Channel: Questions in topic: "crash"
Viewing all articles
Browse latest Browse all 2383

Unity Crashes When Adding Script To GameObject

$
0
0
So i just got into C# coding for unity and i cant figure out why this small script crashes unity completely... using System.Collections; using System.Collections.Generic; using UnityEngine; public class Lvl2Unlock : MonoBehaviour { void Start() { PlayerPrefs.SetInt("Lvl1win" , 1); Debug.Log("PlayerPref: Lvl1Win : Has Been Created."); } } Video of what happens: https://drive.google.com/file/d/1HMoacpL7hteB0lt8VCJMTUsjQIlwob1G/view?usp=sharing

Viewing all articles
Browse latest Browse all 2383

Trending Articles



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