The same field name is serialized multiple times in the class or its parent clas

180 阅读1分钟

问题

The same field name is serialized multiple times in the class or its parent class. This is not supported: Base(ToolbarSlotUI) countText

image.png

BUG原因 重名

image.png

image.png

解决

把子脚本或者父脚本的同名变量更改其中的一个名字,使其都不重名。