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

大约有 4,095 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0080 秒)

551. laya拖拽在部分机型(一部XR)StageX不对 [ 92%]

...部XR)StageX不对 //注册事件  Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseEvent);  Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_OUT, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseEvent); //鼠标yi'...

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

552. 这样的panel请问如何实现比较好? [ 92%]

.../点击最先出来的按钮,会显示下一层界面,同时隐藏自己 this.btnFirst.on(Laya.Event.CLICK, this, this.change, [0]); //点击上面一层的按钮,会隐藏该层,同时显示上一层 this.btnChange.on(Laya.Event.CLICK, this, this.change, [1]); //初始时默认上面一层不...

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

553. 用Socket连接服务器,服务端显示已经有登录,但Event.OPEN没有触发 [ 92%]

...  public function CConnector()         {             this.sendBuf = this.output;             this.recvBuf = this.input;                          this.on(Event.OPEN, this, OnConnected);             this.on(Event.CLOSE, this, OnDisc...

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

554. 对象mask的区域改变问题! [ 92%]

对象mask的区域改变问题! private addedToStage():void{ this.__mask = new Laya.Sprite(); this.__mask.graphics.drawRect(0,0,this.img_bar.width,this.img_bar.height,"#000000"); this.setValue(0); } private setValue(v:number):void{ this.__mask.scaleX = v; this.img_bar.mask = null;//第二次设...

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

555. Laya.loader.create 加载进度问题 [ 92%]

...elManager() { Laya.loader.create("res/Pipe/Pipe/a.lh", Laya.Handler.create(this, this.onCreateComplete()),Laya.Handler.create(this, this.onAssetsLoading)); } ModelManager.prototype.onCreateComplete = function () { console.log("onCreateComplete"); var pipe = Laya.loader.getRes("res/Pipe/Pipe/a.lh"); ...

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

556. 图集动画结束回调有延迟 [ 92%]

图集动画结束回调有延迟 this.ded.addLabel("animOver",9); this.ded.on(Laya.Event.LABEL, this, this.onHitOver);  this.ded.on(Laya.Event.COMPLETE, this, this.onHitOver);  两种方法都会有延迟,不能100%执行 2018-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

557. 可视遮罩层Layer(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 92%]

...clone2.layer = 3; layaMonkey_clone3.layer = 4; ...... //移除所有图层 this.camera.removeAllLayers(); //添加显示图层(为相机添加一个蒙版) this.camera.addLayer(5); //显示用计数 this.layerIndex = 0 //给 ‘切换图层’ 按钮添加事件 每一次点击切换一个显示层 ...

来源: Laya2.0_文档 发布时间: 20210715

558. 可视遮罩层Layer(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 92%]

...clone2.layer = 3; layaMonkey_clone3.layer = 4; ...... //移除所有图层 this.camera.removeAllLayers(); //添加显示图层(为相机添加一个蒙版) this.camera.addLayer(5); //显示用计数 this.layerIndex = 0 //给 ‘切换图层’ 按钮添加事件 每一次点击切换一个显示层 ...

来源: Laya2.0_文档 发布时间: 20210715

559. Laya.loader.load加载位图字体 [ 92%]

...重复加载图片,走不到else里面,if的判断是否应该改为 !this._data             if (!data._source){                 this._data=data;                 this.event(/*laya.events.Event.PROGRESS*/"progress",0.5);                 ...

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

560. html固定宽高,设置垂直居中没有效果。只有水平居中才生效。看了下源码,感觉在updatePos函数里的算法不对 [ 92%]

...话只水平居中没有垂直居中。 调试的时候,在Layout.layout(this),跳进去 在Layout._multiLineLayout(element)里面的updatePos(0,tWidth,i,tY,align,valign,lineHeight)函数里对元素根据对齐方式重新设置坐标。这里面感觉对垂直居中的y坐标的计算方式...

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