大约有 318 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0053 秒)
...ublic static GameStart:GameStart; GameMain.GameStart=new GameStart(); Laya.stage.addChild(GameMain.GameStart); 报错:file: 'file:///e%3A/LAYABOX/CaiCi/src/GameMain.ts' severity: '错误' message: 'Argument of type 'GameStart' is not assignable to parameter of type 'Node'. Property '_childs' is mi...
来源: Laya_社区 发布时间: 20170826
...eight: 100 }); var url: string = this.URL; this.qrcode.makeCode(url); Laya.stage.once("click", this, this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private clickHandler(): void { var url: string = this.qrcode._oDrawing._elImage.src;//获取,注意这...
来源: Laya_社区 发布时间: 20180412
...叠 要回复问题请先登录 发起人 jacksing888 相关问题 修改stage的scale后,会发生异常情况 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 官方"3D角色脚本控制与碰撞检测"这个方法是不是不适用于高低起伏的地面? 手游的...
来源: Laya_社区 发布时间: 20170505
...ne.open(GameConfig.startScene); let view = new ui.test.TestSceneUI(); Laya.stage.addChild(view) 发现runtime也没有运行,是设计就是这样的吗? 就不传demo了 就改动上面两处。 2019-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20191009
...下,cpu爆满 IDE编辑模式,一片黑,打不开 使用Laya3Dinit和Stage裁切模式导致按钮判定区偏移 在初始化时候使用canvas 或者WebGL 两种模式对使用引擎有什么区别? laya怎么将object转为num,我知道是用paseint,但是格式是怎样的 不知道...
来源: Laya_社区 发布时间: 20170713
drawToCanvas无法释放内存 Laya.stage.frameLoop(1, this, ZX);function ZX():void{ var tex:Texture=new Texture(sp.drawToCanvas(sp.width,sp.height,0,0)) sp.graphics.clear() sp.graphics.destroy() tex.destroy() ...
来源: Laya_社区 发布时间: 20190120
...prite(); sp2.x = 300; sp2.graphics.drawTexture(_texture,0,0,100,100); Laya.stage.addChild(sp2); 文档说好像可以 报错了。 this.bitmap.activeResource is not a function 有其他的方法将一个canvas的内容绘制到另外一个canvas吗 附件 : --> 2017-11-13 添加评论 免费帖 -...
来源: Laya_社区 发布时间: 20171113
...ructor() { //Laya.init(400, 640, Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" Laya.Stat.show() //资源路径 this.Res = "test.png"; this.img = new Laya.Image(); this.img.pos(200, 200) //获取图片资源,绘制到画布 this.img.skin = this.Res //添加到舞台 Laya.stage...
来源: Laya_社区 发布时间: 20171211
...! 鼠标滚轮缩放地图,怎么防止同时滚动网页? 获得,stage缩放比例 问题状态 最新活动: 2018-08-22 17:32 浏览: 1028 关注: 3 人
来源: Laya_社区 发布时间: 20180820
...s); this.img = []; this.init(); } Class.prototype.init = function() { Laya.stage.addChild(this); this.bg(); Laya.timer.frameLoop(1, this, this.loop); }; Class.prototype.bg = function() { for (var i = 0; i < 2; i++) { this.img[i] = new Laya.Image('background.png'); this.addChild(this.img[i]); } th...
来源: Laya_社区 发布时间: 20170619