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

大约有 622 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0049 秒)

211. 多个模块之间相互嵌套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

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

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

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

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

...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

214. MovieClip 报错 7 [ 68%]

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

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

215. 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

216. 物理使用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

217. 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

218. 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

219. HTMLDivElement中image标签多次赋值报错 [ 68%]

...s://layaair.ldc.layabox.co ... ot%3B style="width:100;height:100" onclick="this.style.display=\'none\';" />\ <span style="color:white;font:24px Arial">paragraph 3</span>'; p.innerHTML = html; p.innerHTML = html; } })(); 附件 : --> 2018-08-08 添加评论 免费帖 --> 分享 微博 ...

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

220. 使用drawToCanvas截图多次之后,再也无法再本次程序中截图显示。没有任何报错 [ 68%]

...制作的帧动画之后会出现截图失败的情况private takePhoto(){ this._htmlC = this.gridBox.drawToCanvas(this.gridBox.width,this.gridBox.height,0,0); //获取截屏区域的texture this._tex = new Laya.Texture(this._htmlC); this._photo=new Laya.Sprite(); //将截屏的texture进行draw绘...

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