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

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

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

...ad("LayaScene_SceneMonkey/Conventional/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", ...

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

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

...ad("LayaScene_SceneMonkey/Conventional/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", ...

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

63. [0]Laya3.0.3 的VideoNode不支持在微信浏览器中播放 [ 83%]

...Laya3.0.3 的VideoNode不支持在微信浏览器中播放 let videoNode = this.owner.getChildByName("VideoNode") as Laya.VideoNode; videoNode.source = 'xxx.mp4'; videoNode.play(); // 上面代码在PC端安卓苹果等自带浏览器支持视频播放,但是在微信浏览器无任何显示。 le...

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

64. 动画无法添加到舞台问题 [ 83%]

...ero_fly1.png", "fj/hero_fly2.png"], "hero_fly");//创建飞机飞行缓存 this.LeadBody = new Laya.Animation(); this.LeadBody.play("hero_fly");//播放动画 this.bound = this.LeadBody.getBounds(); this.LeadBody.pos(-this.bound.width/2,-this.bound.height/2);//设置动画位置 Laya.stage.addChild(...

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

65. 骨骼动画进阶(ActionScript-2D进阶篇(AS3)-动画进阶) [ 82%]

...; //创建动画模板 templet = new Templet(); templet.on(Event.COMPLETE, this, parseComplete); templet.on(Event.ERROR, this, onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); } private function onError():void { trace("parse error"); } private function parseComplete():...

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

66. 分享:销毁龙骨动画! [ 82%]

... = 250; addBtn.y = 50; Laya.stage.addChild(addBtn); DesBtn.on(Event.CLICK, this, onDesBtn); addBtn.on(Event.CLICK, this, onAddBtn); } private function onDesBtn():void { destroy(); } private function onAddBtn():void { startFun(); } public function startFun():void { mAniPath = "Dragon/Dragon.sk"; mFac...

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

67. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 82%]

...的动画在pc模拟器播放OK在手机端不显示 loaded : function(){ this.loader = Laya.loader; this.loader.retryNum = 0;//无加载重试 this.urls = ['imgdebris/imgdebris.atlas','imgdebris/p1_slj.png',]; // this.loader.load(this.urls[0], Laya.Handler.create(this, this.onAssetloaded)); this.lo...

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

68. tween有这个一个bug [ 82%]

...,{x:point.x,y:point.y,alpha:1,update:Laya.Handler.create(point,function(){ this.visible = true; })},800,Laya.Ease.backOut,null,i*400); timeline在一开始还在正常执行, 当有一半左右的ui元素进入到场景时, timeline循环卡住不动了, 等所有ui动画执行完毕, timeline又开...

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

69. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 82%]

...); Laya.init(Browser.width, Browser.height); Stat.show();  //棋子动画 this.genSpine("res/spine/ludo_qizidongzuo.skel", Laya.Handler.create(this, (templet: Laya.SpineTemplet) => {  //模版复用 let y = 400; let unitWidth = Laya.stage.width / 16; for (let i = 0; i < 16; i++) { let person...

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

70. l龙骨动画内存上升 [ 81%]

...stage.bgColor = "#ffffff";             Laya.stage.on(Event.CLICK, this, play);         }                  function play():void {             Laya.timer.loop(5000, this, function():void {                 playDragonBonesAnimation("BigAward/BigAward.sk",0...

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