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

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

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

...件,有沒有實例可以看下 代碼如下: 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("3d/man/CunMinNan-cunminn...

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

852. 示例 骨骼动画换装 加不上点击事件 [ 65%]

... = mStartX; mArmature.y = mStartY; //mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //changeSkin(...

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

853. 使用mask后,只要调用 Laya.Resource.destroyUnusedResources() 就会引起报错 [ 65%]

....drawRect(0, 0, 200, 200, "#0xFFFF00"); bgSprite.pos(300, 300); Laya.stage.addChild(bgSprite); let mask = new Laya.Sprite(); bgSprite.mask = mask; mask.graphics.drawCircle(0, 0, 100, "0x0000FF"); window.onblur = function() { console.log("onblur....?"); Laya.timer.once(2000, null, function() { Laya.R...

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

854. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...nsform.position = new Laya.Vector3(1,0,0); //添加到场景中 this.scene.addChild(sp); 其次,这里详细讲解下Sprite3D中特有的克隆接口instantiate /** * 创建精灵的克隆实例。 * @param original 原始精灵。 * @param parent 父节点。 * @param worldPositionStays 是否保...

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

855. 加载UI不成功,项目源码已经上传 [ 65%]

... function onLoaded(): void { var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); } 这是加载ui的代码

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

856. [LayaAirIDE3]skel骨骼动画播放失败,编辑器预览没问题 [ 65%]

...his.skeleton["_renderType"] !== undefined) {         this.spr_xiaoshan.addChild(this.skeleton);         this.skeleton.pos(0, 0);         this.skeleton.scale(0.3, 0.3);         this.skeleton.play(0, true);     } else {         console.warn("无效的 skeleton, 跳过添加:", te...

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

857. 为何发布到微信小程序上,iphone xr会出现精灵显示不全的问题? [ 65%]

...a.stage.width / 480; bgSprite.scaleY = Laya.stage.height / 852; Laya.stage.addChild(bgSprite);   在安卓和其他的ios设备上都正常,但是在iphone xr上就遇到了显示不全的问题。 有问题的设备的相关信息如下: ios版本:12.2 微信版本:version 7.0.4   刚开...

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

858. 飞机大战出现的问题注册了类New的时候报错未定义 [ 65%]

...g = new BackGround(); //把背景添加到舞台上显示出来 Laya.stage.addChild(this.bg);  })();     })();   //循环滚动的游戏背景 var BackGround = (function(_super){ function BackGround(){ BackGround.super(this); //创建游戏背景1 this.bg1 = new Laya.Sprite(); //加载并显示...

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

859. 动画挂点(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 65%]

...ntional/SceneMonkey.ls",Laya.Handler.create(this,function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, funct...

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

860. 动画挂点(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 65%]

...ntional/SceneMonkey.ls",Laya.Handler.create(this,function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, funct...

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