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

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

591. Sprite3D的克隆(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 81%]

...e("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = L...

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

592. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 81%]

...olor = "#fff"; Laya.loader.load("assets/images/color1.png", Handler.create(this, __loadImageHandler)); } private function __loadImageHandler():void { _colorSpr = new Sprite(); _colorTex = Laya.loader.getRes("assets/images/color1.png"); _colorSpr.graphics.drawTexture(_colorTex); _colorSpr.cacheAs = "...

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

593. 求助高手请进,关于场景导入的问题~ [ 81%]

...载出来了Laya.loader.create("LayaScene_01/loveScene.ls",Handler.create(this,this.completeHandler)); private function completeHandler():void{     var scene:Scene = Laya.loader.getRes("LayaScene_01/loveScene.ls");     Laya.stage.addChild(scene); }   我现在的问题是,我创建一个继...

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

594. 官方视频教程中飞机大战 "this.addChild is not a function" [ 81%]

官方视频教程中飞机大战 "this.addChild is not a function" IDE Layabox1.7.20.2 beta 版 src/Game.js//var WebGL = laya.webgl.WebGL; //Laya.init(480, 852, WebGL); var Game = (function(){ (function Game(){ Laya.init(480,852); this.bg = BackGround(); Laya.stage.addChild(this.bg); })(); })(); s...

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

595. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 81%]

...yaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //记载场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //加载相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector...

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

596. GlowFilter和TimeLine/Tween一起用的问题 [ 81%]

..., {blur: 1}, 200, null, 0);         }         t.on(Event.COMPLETE, this, function(){             sp.filters = null;         });         t.play(0, true);     };   (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebG...

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

597. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 81%]

...件函数,名字是可以对应上的 ShowMsg(){ console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后,我们将我们创建的这个脚本添加给cube。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/LayaScene_AnimationEvent/Con...

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

598. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 81%]

...  __proto.getTileProperties=function(index,id,name){         if (this._tileProperties[index] && this._tileProperties[index][id]){             return this._tileProperties[index][id][name];         }         return null;     }     import { ui } from ...

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

599. laya中js 如何实现Sprite类继承 [ 81%]

...决方法 主文件:a.js    组件文件:Role.js a.js文件代码: this.Role = new Role(); this.RoleMap = new Laya.Sprite(); this.RoleMap.size(Laya.stage.width, Laya.stage.height/2); Laya.stage.addChild(this.RoleMap); this.RoleMap.addChild(this.Role); this.Role.pivot(16,24);// 图片32x48 th...

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

600. LAYA2.0.0beata2使用场景编辑器无法通过var属性调用 [ 81%]

...UI界面,定义一个image的var为testBut,在class中继承ui,使用this.testBut调用该var时,报错为:undefined,检查layaMaxUI中有该var属性,使用this.testBut时IDE也未报错,请问如何解决 2018-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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