The same field name is serialized multiple times in the class or its parent class. This is not supported: Base(MonoBehaviour) txtTitle UnityEditor.HostView:OnGUI()
工程中搜索txtTitle 可以看到 父类
代码语言:javascript复制public abstract class UILoading
{
public Text txtTitle;
public Text txtTips;
子类
代码语言:javascript复制public class UISimpleLoading:UILoading
{
public Text txtTitle;
public Text txtTips;
这样在编辑器中是正常的,但是不能打包,不可多次序列化,要子类或者父类改名