新拉取的分支,使用單色精靈雄卷。default_sprite_splash會(huì)報(bào)這個(gè)錯(cuò)誤
TypeError: Cannot read property ‘gizmo’ of null 報(bào)錯(cuò)解決方式
TypeError: Cannot read property ‘gizmo’ of null
粒子和拖尾的圖片資源不能打包成圖集
console.time() 和 console.timeEnd()得到一段代碼的執(zhí)行時(shí)間
打開(kāi)Creator引擎的安裝目錄
/Applications/CocosCreator.app/Contents/Resources/static/preview-templates/boot.js
打開(kāi)該文件, 添加相應(yīng)分辨率大小.
// init device resolutions
var devices = [
{ name: 'IPhone X', width: 812, height: 375, ratio: 3 },
];
h5項(xiàng)目中,如果使用了webview,需要注意如果游戲的地址是https,webview打開(kāi)的網(wǎng)頁(yè)也要是https
ios平臺(tái)需要注意的問(wèn)題
creator版本2.0.10搁骑,
label的resize_height和shrink模式,多行文本顯示可能會(huì)出現(xiàn)第一行文字只顯示一半又固,解決辦法仲器,拆分文本,使用多個(gè)label顯示
let d = new Date('2021-01-03 15:07:17') 在ios下d是NaN,解決辦法仰冠,時(shí)間格式替換成'2021/01/03 15:07:17'
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir=C:\MyChromeDevUserData