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

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

541. 材质的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 92%]

...mo/Conventional/scene.ls")) as Laya.Scene3D; //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere") as Laya.MeshSprite3D; //获取球型精灵自带的BlinnPhong材质 this.billinMaterial = this.sphere.meshRenderer.material; ``` > 拿到材质之后,我们可以修改材质或...

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

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

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

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

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

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

545. 对象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

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

547. 图集动画结束回调有延迟 [ 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

548. 可视遮罩层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

549. 可视遮罩层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

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