Closed LincolnLiuXinbing closed 1 year ago
URL : https://github.com/cocos-creator/creator-docs/blob/master/zh/advanced-topics/oc-reflection.md#objective-c-%E6%89%A7%E8%A1%8C-javascript-%E4%BB%A3%E7%A0%81
代码示例部分建议加上需要导入的头文件:
#import “cocos/platform/CCApplication.h” #import “cocos/base/CCScheduler.h” #import “cocos/scripting/js-bindings/jswrapper/SeApi.h” ... Application::getInstance()->getScheduler()->performFunctionInCocosThread([=](){ se::ScriptEngine::getInstance()->evalString(script.c_str()); });
收!感谢反馈
你好,相关文档已更新,请查收。 谢谢反馈。
URL : https://github.com/cocos-creator/creator-docs/blob/master/zh/advanced-topics/oc-reflection.md#objective-c-%E6%89%A7%E8%A1%8C-javascript-%E4%BB%A3%E7%A0%81
代码示例部分建议加上需要导入的头文件: