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

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

1011. UNITY导出的模型旋转不了 [ 87%]

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

1012. 刚接触laya的一系列问题 [ 87%]

...据官网例子做的scalebutton缩放功能,锚点在左上角,使用this.pivot(this.width/2,this.height/2);修改没效果,是方法不对还是其他原因? 根据官方例子做的按钮缩放功能在快速点击的时候,按钮会出现卡在缩小状态,代码中确实添加了MOU...

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

1013. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 87%]

...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果 * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能单一,建议用脚本方...

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

1014. Laya.stage.on的Mouse事件,正常情况下没问题,但是Laya.stage.pos移动后就失灵了,请问如何解决? [ 87%]

...解决? 我这样设置的代码: 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

1015. U3D导出两个相同的特效。有一个不显示 [ 87%]

...出一个相机场景,以及两个粒子特效。在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

1016. 设置fontSize的时候没做类型转换 [ 87%]

...时候没做类型转换 __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

1017. LayaAirIDE_1.7.9_beta.zip was not found on this server. [ 87%]

LayaAirIDE_1.7.9_beta.zip was not found on this server. 如圖。   附件 : --> 2017-08-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 清理下浏览器缓存,重新下载一遍...

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

1018. 运动刚体(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 87%]

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

1019. 提示资源重复加载 [ 87%]

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

1020. 这个圆形遮罩问题怎么解决 [ 87%]

...遮罩问题怎么解决 我的代码时这样的 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