Script class?

Error message:

“Please make sure the file name of the script is the same as the class defined inside it.”

What is the class inside the script?

Are you using C# (or Boo) or Javascript?

if it’s c# the name of the script has to be the same name as the script

//Myclass.cs

using UnityEngine;
using System.Collections;

public class Myclass : MonoBehaviour
{
     ....
}
4 Likes