大约有 4,034 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0116 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...l,function(){ //obj.transform.rotate(vect,false,false); //}); })); })); })(this); class BoxControlScript extends Laya.Script3D { constructor() { super(); this.obj = null; this.rotation = new Laya.Vector3(0, 1, 0); } /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创...
来源: Laya_社区 发布时间: 20200611
...据官网例子做的scalebutton缩放功能,锚点在左上角,使用this.pivot(this.width/2,this.height/2);修改没效果,是方法不对还是其他原因? 根据官方例子做的按钮缩放功能在快速点击的时候,按钮会出现卡在缩小状态,代码中确实添加了MOU...
来源: Laya_社区 发布时间: 20180905
...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果 * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能单一,建议用脚本方...
来源: Laya_社区 发布时间: 20200720
...解决? 我这样设置的代码: Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouse); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouse); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouse); 在frameLoop中,我让Laya.stage.pos(movex,movey)后,就再不会调用this.onMouse事...
来源: Laya_社区 发布时间: 20180311
...出一个相机场景,以及两个粒子特效。在laya中代码如下: this._createSprite3D = 2; Laya.loader.create("res/h5/LayaScene_Effect/Effect.lh",Handler.create(this,this.onEffectOK),null,Laya.Sprite3D); Laya.loader.create("res/h5/LayaScene_aixin/aixin.lh",Handler.create(this,this.onEffect...
来源: Laya_社区 发布时间: 20180403
...时候没做类型转换 __getset(0,__proto,'fontSize',function(){ return this._fontSize; },function(value){ if (this._fontSize !=value){ this._fontSize=value; this.isChanged=true; } }); 如果设置fontSize="30",没有做类型转换,后面所有通过fontSize参与的加法运算都会变成...
来源: Laya_社区 发布时间: 20181204
LayaAirIDE_1.7.9_beta.zip was not found on this server. 如圖。 附件 : --> 2017-08-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 清理下浏览器缓存,重新下载一遍...
来源: Laya_社区 发布时间: 20170811
...op事件 private onKeyDown():void { Laya.KeyBoardManager.hasKeyDown(87) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, -0.2));//W Laya.KeyBoardManager.hasKeyDown(83) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, 0.2));//S Laya.KeyBoardManager.hasKeyDown(65) &...
来源: Laya2.0_文档 发布时间: 20210714
...ya.Sprite { private swimpoolani:Laya.Animation; constructor() { super(); this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ Laya.Animation.createFrames([swimpoorpath01,...
来源: Laya_社区 发布时间: 20190805
...遮罩问题怎么解决 我的代码时这样的 var sp = new Sprite(); this.addChild(sp); this.img = new Sprite(); sp.graphics.drawCircle(0,0,50,"transparent"); this.addChild(this.img); this.img.mark = sp; 我看被人也都是这样写的不知道为什么我的...
来源: Laya_社区 发布时间: 20180315