大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0090 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...接报错了 "Failed to construct 'Worker': Please use the 'new' operator, this DOM object constructor cannot be called as a function." 2018-01-08 0 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 还要在index.html中写啊,我以为在as3脚本里写就行了? 2018-01-08 0 1 分享 微...
来源: Laya_社区 发布时间: 20180108
...962用户 在LayaAirIDE根目录\resources\app\out找到main.js,打开在this.app.once("ready"上面加一行: this.app.commandLine.appendSwitch("ignore-gpu-blacklist"); 保存,重启IDE再试试 2019-04-10 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前...
来源: Laya_社区 发布时间: 20190224
...法,定义了开始位置,但动画首次播放不对位置不对 : this.关联绑定2.getComponent(Laya.Animator).play("Animation",0,0.14); this.关联绑定2.getComponent(Laya.Animator).speed = 1; 附件中 两张,分别为第一次运行项目动画的开始位置,另一张为刷新...
来源: Laya_社区 发布时间: 20250714
...ite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 1280, 720,Handler.create(this,()=>{ sp.graphics.getBoundPoints().forEach(e=>{ console.log("_getBoundPointsM:",e); }); })); sp.x=0; sp.y=0; this._sptse=sp; Laya.stage.addChild(sp);
来源: Laya_社区 发布时间: 20170423
...res/01/mfs_01.lh'); scene.addChild(sp); sp.on(Laya.Event.HIERARCHY_LOADED, this, function(){ sp.transform.localPosition = new Laya.Vector3(1, 1, 1); var scale = 1; var v3 = sp.transform.localScale; v3.x = scale; v3.y = scale; v3.z = scale; sp.transform.localScale = v3; }) //这个物体里摄像机...
来源: Laya_社区 发布时间: 20170504
..., 10); bmd2.copyPixels(bmd1, rect, pt); var bm1:Bitmap = new Bitmap(bmd1); this.addChild(bm1); var bm2:Bitmap = new Bitmap(bmd2); this.addChild(bm2); bm2.x = 50; trace(rect.width); trace(rect.height); 输出正常,不知道你那边是如何写的?
来源: Laya_社区 发布时间: 20151105
...tion Connect(url:String):void { socket=new Socket(); socket.on(Event.OPEN, this, onSocketOpen); socket.on(Event.CLOSE, this, onSocketClose); socket.on(Event.MESSAGE, this, onMessageReveived); socket.on(Event.ERROR, this, onConnectError); socket.connectByUrl(url); } public function Add(handler:IHandl...
来源: Laya_社区 发布时间: 20170724
...逼,然后就查引擎源码,最后发现是 var t=Utils.measureText(this.char,this.font);这个方法的问题,在安卓、韩文字体的情况下,这个方法返回的t.width的值一直为0,导致在计算韩文的文本渲染宽度时,韩文字符的宽度一直为0,因此所有...
来源: Laya_社区 发布时间: 20210206
...ber, fillColor: any, lineColor?: any, lineWidth?: number):void { if(this instanceof Laya.Graphics == false ){ return; } let sideMin:number = width<=height ? width : height; if(round<0){ round=0; }else if(round>sideMin/2){ round=sideMin/2; } this.drawPath(x, y, [ ...
来源: Laya_社区 发布时间: 20210123
... fgui.UIConfig.defaultFont = fontName; this._defaultFont = fontName; console.log("小游戏字体加载成功->" + fontName);//成功走到这里了 但是UI没效果 } else { console.error("小游戏字体加载...
来源: Laya_社区 发布时间: 20240513