diff --git a/templates/lua-template-default/frameworks/runtime-src/Classes/lua_module_register.h b/templates/lua-template-default/frameworks/runtime-src/Classes/lua_module_register.h index 7e0ca6169e..5fd41d44dd 100644 --- a/templates/lua-template-default/frameworks/runtime-src/Classes/lua_module_register.h +++ b/templates/lua-template-default/frameworks/runtime-src/Classes/lua_module_register.h @@ -17,8 +17,9 @@ int lua_module_register(lua_State* L) register_network_module(L); register_cocosbuilder_module(L); register_cocostudio_module(L); - register_extension_module(L); + //we must register ui module before extension module register_ui_moudle(L); + register_extension_module(L); register_spine_module(L); register_cocos3d_module(L); return 1; diff --git a/templates/lua-template-runtime/frameworks/runtime-src/Classes/lua_module_register.h b/templates/lua-template-runtime/frameworks/runtime-src/Classes/lua_module_register.h index a69dba2671..1890e3b564 100644 --- a/templates/lua-template-runtime/frameworks/runtime-src/Classes/lua_module_register.h +++ b/templates/lua-template-runtime/frameworks/runtime-src/Classes/lua_module_register.h @@ -17,8 +17,9 @@ int lua_module_register(lua_State* L) register_cocosdenshion_module(L); register_cocosbuilder_module(L); register_cocostudio_module(L); - register_extension_module(L); + //we must register ui module before extention module register_ui_moudle(L); + register_extension_module(L); register_spine_module(L); register_cocos3d_module(L); return 1;