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

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

1091. 寻路系统(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 71%]

...径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Event.MOUSE_UP, this, function():void { index = 0; //获取每次生成路径 getGridIndex(path[curPathIndex % pointCount].x, path[curPathIndex++ % pointCount].z, startPoint); getGridIndex(path[nextPathIndex % pointCount].x,path[nextPathInde...

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

1092. 关于spine资源加载以及创建Laya.Templet问题 [ 71%]

... new Laya.Templet(); tm.loadAni("res/imgs.sk"); tm.on(Laya.Event.COMPLETE, this,()=>{       //是不是只能在这里面创建动画,这里创建,那我如何全局使用????????       var skp = this.buildArmature(1);       skp.showSkinByIndex(1); })   我想在外...

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

1093. 关于微信小游戏的开放数据域,请问如何将开放数据域的canvas绘制到layaair的image上? [ 71%]

...解答,多谢   // wxMgr.getOpenDataCanvas() //开放数据域canvas // this.view.image_rank_list //要绘制的图片 // var rankTexture = new Laya.Texture(wxMgr.getOpenDataCanvas()); // rankTexture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 // console.log(rankTextur...

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

1094. 用layaair如何加載蒙皮動畫,请问怎么加载.lm文件和.ani文件,有沒有實例可以看下 [ 71%]

...加载.lm文件和.ani文件,有沒有實例可以看下 代碼如下: this.scene = Laya.stage.addChild(new Laya.Scene()); //加载相机 this.camera = this.scene.addChild(new Laya.Camera()); this.scene.CurrentCamera = this.camera; //男角色 this.roleMan = new Laya.MeshSprite3D(Laya.Mesh.load(...

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

1095. ipad 声音管理无法暂停继续播放,只能从头开始,pc端正常,代码如下 [ 71%]

...pc端正常,代码如下    private playSoundLead() {         if (!this.soundMan || this.playBoo) {             this.soundMan = Laya.SoundManager.playMusic(this.leadSoundUrl, 1, Handler.create(this, this.soundEndFun1));             this._btnTimeOutPlay.visible = true;        ...

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

1096. LayaAir2.0 beta3 对骨骼动画应用发光滤镜的问题 [ 71%]

...发光滤镜,并没有一直new SpineMgr.inst.loadSpine(['spine/yasuo'], this, ()=>{ this._spine = SpineMgr.inst.createSpine('spine/yasuo.sk', 0); // this._spine.showSkinByIndex(1); this._spine.play('yidonggongji', true); this.testSkePos.addChild(this._spine); //创建一个发光滤镜 var fil...

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

1097. 微信小游戏下Laya.Browser.window.protobuf可以用吗? [ 71%]

....protobuf可以用吗? let protoBuf =  Laya.Browser.window.protobuf; this.proto = await  protoBuf.load("res/protobuf/game.proto");   var HeartBeatReq = this.proto.lookup("HeartBeatReq");         var body = HeartBeatReq.create({             "time":1         }); ...

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

1098. UI 控件多次调用 RESIZE 回调问题 [ 71%]

...ya.Box(); a.left = a.top = a.right = a.bottom = 0; a.on(Laya.Event.RESIZE, this, () => { console.warn(" resize ===== "); }) Laya.stage.addChild(a); Laya.timer.loop(1000, this, () => { a.addChild(new Laya.Box()); }); --------------- 测试代码如上,每1s会回调一次控件 a 的 RESIZE ...

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

1099. textinput(type=password)手机打开华为安全键盘后,无法关闭(官网的例子) [ 71%]

...s/ui/input (4).png"];         Laya.loader.load(skins, Handler.create(this, onLoadComplete)); //加载资源。     })();     function onLoadComplete()     {         for (var i = 0; i < skins.length; ++i)         {             var input = createInput(skins[i]); ...

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

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

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