Unity 2017 breaks scripts
So I installed Unity 2017 recently, and now none of my scripts are working, even those I add to the project. A sample of the problem (the file is Health.cs):
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Health : MonoBehaviour {
public int healthAmount = 100;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
Notice the class name is the same as the file name. I've tried to delete the Library folder and I've restarted Unity a couple of times, but the problem still persists. Any other ideas?
Your answer
Follow this Question
Related Questions
How to add a Type to a Class in Javascript? 1 Answer
increase score with a variable from another script 1 Answer
Generating random points and instantiating prefabs with a set distance 0 Answers
How to set a variable of a non-monobehavior script from a monobehaviour script 0 Answers
UI buttons won't recognize script 0 Answers