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

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

1141. 3D场景环境设置 · LayaAir3.4 · 引擎文档 · LAYABOX [ 60%]

...('scene/Game.ls', Laya.Handler.create(null, function (res:any){ Laya.stage.addChild(res); })); //用Laya.loader的方式加载,加载后根节点是Scene2D Laya.loader.load('scene/Game.ls', Laya.Handler.create(this, this.onLoaded), Laya.Handler.create(this, this.onLoading)).then( (res)=>{ let s...

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

1142. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 60%]

...(0.5, 0.5); mArmature.on(Event.STOPPED, this, completeHandler); Laya.stage.addChild(mArmature);   play(); }); }   function completeHandler() { mArmature.stop();         mArmature.removeSelf();         mArmature.removeChildren();         mArmature.destroy(true);           Laya.Pool...

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

1143. 摄像机动画的使用(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 60%]

...onventional/scene.ls',Laya.Handler.create(this,function(scene){ Laya.stage.addChild(scene); })); ``` ![](img/2.gif)(图2)

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

1144. 摄像机动画的使用(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 60%]

...onventional/scene.ls',Laya.Handler.create(this,function(scene){ Laya.stage.addChild(scene); })); ``` ![](img/2.gif)(图2)

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

1145. HTMLDivElement 设置字体 [ 60%]

...#ff0000'>欢迎你的加入</span>";             this.addChild(html);   2018-03-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: https://ldc.layabox.com/doc/?nav=zh-...

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

1146. Laya List给子元素添加事件后,滚动事件被劫持了 [ 60%]

...动不了 txArray.push(list);} storeTxList.array = txArray;   Laya.stage.addChild(storeTxList);     悬赏找大神看问题 export default class StoreItem extends Laya.Box { constructor() { super(); this.size(195, 210); }  } 附件 : --> ListDemo.zip 2019-07-11 添加评论 已悬赏10元 --> ...

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

1147. 模仿教程里的打地鼠写的代码,运行报错 [ 60%]

...; function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这样写的 var background = (function (_super) { function background() { background.super(this); } Laya.class(background,"background",_super); return background; })(ui.backgrou...

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

1148. 微信平台下如何截屏 [ 60%]

...vas; let t = mainCanvas.getTexture(); let imgSp = new Sprite(); Laya.stage.addChild(this.imgSp) imgSp.graphics.drawTexture(t)) 2020-06-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 无 相关问题 关于微...

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

1149. ts项目加载version.json失败 [ 60%]

..."); var img = new Laya.Sprite(); img.loadImage("res/test.jpg"); Laya.stage.addChild(img); } } new GameMain(); 调试的时候可以显示出来 res/test.jpg,但是会报出“资源版本清单文件不存在,不使用资源版本管理。忽略ERR_FILE_NOT_FOUND错误。” 发布时启用了...

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

1150. material材质平铺 [ 59%]

...erial 创建的贴图材质,这样能平铺吗? var plane = this.scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(200, 50, 1, 1))); plane.transform.translate(new Laya.Vector3(0, -0.4, 0)); var material1 = new Laya.StandardMaterial(); material1.diffuseTexture = Laya.Texture2D.load("http://...

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