laya商业级3d游戏开发
视频地址https://www.bilibili.com/video/BV1m54y1S7st/
本节目标:安装调试环境,输出helloworld,断点
打开工具大礼包(可以在q群或者在课程资源区下载)
解压LayaIDE
安装chorme 浏览器
安装 node-v10.21.0-x64.exe
新建Laya 空项目”LayaExample” 语言选择 ts ,勾选启用微信bin目录调试
安装后运行vscode,按Ctrl + Shift + P
Configure Display Language
安装中文语言包
Extensions 搜索 debug for Chrome 安装
修改
compile.js中的sourcemap属性修改为true
或者搜索sourcemap:修改false为true
修改config.json中sourceMap属性为true
打开main.ts
onConfigLoaded()
console.log('helloworld');
F9打断点
LAYA中按 F8(编译) VSCODE 中按f5(运行)