• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 633 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)

211. ide发布web后报错 [ 69%]

ide发布web后报错 Uncaught TypeError: this.preinitialize is not a function     at i (laya.ui.min.js:1)     at i (laya.ui.min.js:1)     at i (laya.ui.min.js:1)     at GameUI (layaUI.max.all.js:9)     at Function.<anonymous> (laya.core.min.js:1)     at t (main.min.js:4)     at...

来源: Laya_社区 发布时间: 20171205

212. 照着官方文档写的 Dialog 报错? [ 69%]

...r LoadResource = function () { LoadResource.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype...

来源: Laya_社区 发布时间: 20200924

213. 多个模块之间相互嵌套import,导致运行报错 [ 69%]

...{ public sex: number = 0; public Create(): void {} public Attack(): void { this.emit('attack'); } } Manager.ts public CreateCat(): void { let self = this; let cat = new Cat(); cat.Create(); cat.on('attack', function () { self.Change(); }); this.animals.push(cat); }   2019-02-26 0 2 分享 微博 QZ...

来源: Laya_社区 发布时间: 20190226

214. graphics的setAlpha在pc端正常使用,到layaNative就报错 [ 69%]

...setAlpha在pc端正常使用,到layaNative就报错 如题,报错是说this._saveToCmd is not a function 2018-09-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复   赞同来自: 提供一下你的demo 2018-...

来源: Laya_社区 发布时间: 20180911

215. load方法加载cdn上面的图片资源的时候直接报了跨域不同源的问题,怎么破? [ 69%]

...TATIC_IMG_PATH+'progressBar.png', STATIC_IMG_PATH+'progressBar$bar.png' ]; this.isFirst = true; console.log('Gzdaze='); console.log(Gzdaze); Laya.loader.load(Gzdaze.dialogList, Handler.create(this, this.startLoaded)); 代码是这样的 报错 Access to Image at 'http://caifu-1251177394.file.myqclou...

来源: Laya_社区 发布时间: 20180208

216. MovieClip 报错 7 [ 68%]

MovieClip 报错 7 来, 你的代码, 修改 Laya.timer.frameLoop(1, this, this.timeHandelr); 一帧创建一个动画, 这个需求不过分吧?   附件 : --> 2018-09-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

来源: Laya_社区 发布时间: 20180908

217. LayaAirID 打包app测试 apk无法开启webgl。用浏览器扫码进入就没问题 [ 68%]

...示对象 *@param index */ __proto.showDisplayByIndex=function(index){ if (this._replaceDic[index]) index=this._replaceDic[index]; if (this.currSlotData && index >-1 && index < this.currSlotData.displayArr.length){ this.displayIndex=index; this.currDisplayData=this.currSlotData...

来源: Laya_社区 发布时间: 20180106

218. 物理使用scrollrect错位问题 [ 68%]

...是会错位, 哪里出问题了呢, 求解答 Laya.Physics.I.worldRoot = this.road; this.road.scrollRect = new Laya.Rectangle(0, 100, this.width, this.height); 2020-10-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个...

来源: Laya_社区 发布时间: 20201011

219. drawToCanvas绘制显示不全 [ 68%]

...constructor() {         super();     }     onAwake() {         this.nativeImg = new Image();         let style = this.nativeImg.style;         style.position = 'absolute';         style.visibility = 'hidden';         style.zIndex = 9999;         style.height = screen....

来源: Laya_社区 发布时间: 20230323

220. HTMLDivElement添加&字符会报错 [ 68%]

...&字符会报错 LayaSample.max.js:22828 Uncaught (in promise) Error: This page contains the following errors:error on line 1 at column 71: xmlParseEntityRef: no name 2018-10-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

来源: Laya_社区 发布时间: 20181024