My prefab is called ‘Tile’, and only contaisn a Cube with default material, renderer etc.
I also have a C# script called ‘Tile’. Would this cause problems? (Prefab name and script name being the same)?
using UnityEngine;
using System.Collections;
public class Tile : MonoBehaviour {
public int tileX = 0;
public int tileY = 0;
public bool dragging = false;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
However, the error seems to be on the Prefab, not the Script.
Please can you file a bug report for this (menu: Help > Report A Problem), especially if this is occurring with the beta version of Unity. It may be something in your project that is causing this, but it might instead be some code within Unity itself.