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

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

1201. 3D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...aterial; //把圆锥形3D节点对象添加到3D场景节点下 this.scene.addChild(cone); //设置随机位置 this.tmpVector.setValue(Math.random() * 6 - 2, 6, Math.random() * 6 - 2); cone.transform.position = this.tmpVector; //为圆锥形3D节点对象创建刚体碰撞器 let _rigidBody = <L...

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

1202. 对象池的使用 [ 57%]

...Image); nan.skin = url; nan.x = Math.random() * 600 + 80; nan.y =-60; this.addChild(nan); } private function delRen():void { if(arr.length){ for (var i:uint = 0; i < arr.length; i++ ){ if (arr[i].y > 800){ Pool.recover("nan", Image); } }arr[i].visible = false ; }; } 2017-12-26 添加评论 免...

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

1203. 当使用Image作为一个对象的遮罩时,设置Image的ScaleX为0时遮罩失效! [ 57%]

...g:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(img); var imgMask:Laya.Image = new Laya.Image(); imgMask.skin = img.skin; imgMask.scaleX = 0; // 无效 // imgMask.scaleX = 1 // 有效 //imgMask.scaleX = 0.5 // 有效 img.mask = imgMask; imgMask.repaint(); } } new ...

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

1204. 如何通过名字 或 索引播放 spine 动画 [ 57%]

...iyangyang_2.sk"); // skeleton.play(0,true);//播放不了别的 this.owner.addChild(skeleton); skeleton.pos(500,500);   哪里写的有问题 大佬看看 2019-06-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复...

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

1205. laya.d3.core.Sprite3D_API3.0 [ 57%]

...ildren parent scene timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getCompo...

来源: Laya3.0_api 发布时间: 20231115

1206. 用1.01导出的场景加载失败 [ 57%]

...aya.Sprite3D.load("unity/LayaScene_1/1.lh");     SceneManager.Instance().AddChild(scene);   2017-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来自: 先看下这个帖子Lay...

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

1207. 用u3d导出的粒子效果,不能移动粒子的位置 [ 57%]

... particleSprite3D.transform.translate(new Laya.Vector3(0,20,0)) this.scene.addChild(particleSprite3D); 用u3d导出的粒子效果,不能移动粒子的位置 2018-05-16 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回...

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

1208. 动画节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...apMode = 2; //播放模式为pingpong播放模式(PINGPONG) this.owner.addChild(Animation) //添加节点 } } 效果如动图3-1所示: (动图3-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:54 img{cursor:pointer}

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

1209. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 57%]

...到舞台; var sp:Sprite = new Sprite(); sp.loadImage(url); Laya.stage.addChild(sp);//添加到舞台 } private function errorHandler(e:Object):void { } 是无法显示图片的   而用JS开发,用JS的事例,却是可以显示的 2017-10-11 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

1210. Animation类如何调用complete事件 [ 57%]

....loadAnimation("Ready.ani"); readyAni.interval = 100; Laya.stage.addChild(readyAni); readyAni.play(0,false); readyAni.on(EVENT.COMPLETE, null, onComplete); } 在方法外有个 function onComplete() { console.log('3'); readyAni.destroy(); } 但是报错 chenhuanqi23 • 2017-09-27 15:20 ...

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