Unity 报错之 The same field name is serialized multiple times in the class or its parent class.
Unity 报错之 同一字段名在类或其父级中序列化多次
报错图片:
报错代码:
public class BaseClass : MonoBehaviour {
public GameObject gameStart;
}
public class SubClass : BaseClass
{
//不管是否是同一类型都会报这个错误.
public GameObject gameStart;
//public Transform gameStart;
}