cocos2dx3.1.1+cocosstudio+lua问题总结
一、DeprecatedEnum.lua no value
_G.LAYOUT_ABSOLUTE = ccui.Type.ABSOLUTE
_G.LAYOUT_LINEAR_VERTICAL = ccui.Type.VERTICAL
_G.LAYOUT_LINEAR_HORIZONTAL = ccui.Type.HORIZONTAL
_G.LAYOUT_RELATIVE = ccui.Type.RELATIVE
解决为:
參考网址:http://www.cocos2d-x.org/issues/5344
将这段代码改为
_G.LAYOUT_ABSOLUTE = ccui.LayoutType.ABSOLUTE
_G.LAYOUT_LINEAR_VERTICAL = ccui.LayoutType.VERTICAL
_G.LAYOUT_LINEAR_HORIZONTAL = ccui.LayoutType.HORIZONTAL
_G.LAYOUT_RELATIVE = ccui.LayoutType.RELATIVE
二、出现Read design size error! Expression: IsObject()这种错误
參考网址:http://blog.csdn.net/fansongy/article/details/18366275
在提到的URL内的答案。它可能是cocosstudio和代码版本号不是为正确,因此,删除require "CocosStudio"您可以