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

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

451. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 40%]

...0 * Laya.Browser.pixelRatio);         changeActionButton.on(Laya.Event.CLICK, this, function () {             if (++curStateIndex % 2 == 1) {                 debugModel = true;                 changeActionButton.label = "网格模式";             }             ...

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

452. Clip属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 40%]

..., 30); //按钮点击事件——计数器状态控制 controller.on(Event.CLICK, this, onClipState); //按钮位置 controller.x = (Laya.stage.width - controller.width) / 2; controller.y = (Laya.stage.height - controller.height) / 2 + 110; //加载到舞台 Laya.stage.addChild(controller); } /***...

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

453. CPU优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 40%]

...ipt Laya.timer.frameLoop(1, this, animateFrameRateBased); Laya.stage.on("click", this, dispose); private function dispose():void  {     Laya.timer.clear(this, animateFrameRateBased); } ``` ​ 当一个对象的生命周期结束时,记得清除其内部的Timer: ### **三、获取显...

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

454. CPU优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 40%]

...cript Laya.timer.frameLoop(1, this, animateFrameRateBased); Laya.stage.on("click", this, dispose); function dispose() { Laya.timer.clear(this, animateFrameRateBased); } ``` 当一个对象的生命周期结束时,记得清除其内部的Timer: ### **三、获取显示对象边界的做法** 在...

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

455. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 40%]

...tring = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private clickHandler():void{ var url:string = this.qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,...

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

456. 位图切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...FFFFFF,#FFFFFF,#FFFFFF"; this.controller.size(84, 30); this.controller.on('click', this, this.onClipSwitchState); this.controller.x = (Laya.stage.width - this.controller.width) / 2; this.controller.y = (Laya.stage.height - this.controller.height) / 2 + 110; this.owner.addChild(this.controller); } pr...

来源: Laya3.0_文档 发布时间: 20251010

457. drawTexture 画出来的数据会有以前的数据 [ 39%]

...pr.width = 1280; iconSpr.height = 640; iconSpr.addChild(img); btn.on(Event.CLICK,this,runGame1); } private function runGame1():void { xNum = Math.random()*7 - 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.timer.frameLoop(10,this,refresh); } private function refresh():void { Ico...

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

458. 如何实现3d遮罩效果? [ 39%]

...pixelRatio / 2, Laya.stage.height - 50 * Browser.pixelRatio); btn.on(Event.CLICK, _this, onclick); Laya.stage.addChild(btn); Laya.stage.on(Event.RESIZE, null, function():void { btn.pos(Laya.stage.width / 2 - btn.width * Browser.pixelRatio / 2, Laya.stage.height - 50 * Browser.pixelRatio); }); })); }...

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

459. 针对2.0.0 beta5 setLoadingPage 做增强 [ 38%]

...ew LoadPage() loadPage.preload() this.getChildByName('text').on(Laya.Event.CLICK, this, function () { // 切换打开场景方式 查看效果不同 loadPage.openScene('page2.scene', this.getUserInfo, true, [1, 2, 3]) // loadPage.openScene2('page2.scene', this.getUserInfo, true, [1, 2, 3]) }) } /** ...

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

460. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 38%]

... Laya.timer.frameLoop(1, this, this.animateFrameRateBased); Laya.stage.on("click", this, this.dispose); dispose() { Laya.timer.clear(this, this.animateFrameRateBased); } ``` 当一个对象的生命周期结束时,记得清除其内部的Timer: ### **三、获取显示对象边界的做法** 在...

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