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

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

461. [0]laya-zip让你的游戏加载速度提升350%!! [ 49%]

...e:"ZIP",constructParams:["xx/xxx1.lh","xx/xxx2.lh"]}], Laya.Handler.create(this, () => { let player1 = Laya.loader.getRes("xx/xxx1.lh").clone(); let player2 = Laya.loader.getRes("xx/xxx2.lh").clone(); })); [/size][/code]高级 为了根据具体项目来定制压缩包的颗粒度(打几个包...

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

462. 当使用代码创建打开场景时,onOpened触发了,但场景active和activeInHierarchy还是处于false,请问纯代码怎么实现场景创建激活,谢谢 [ 49%]

...('scene', scene.active, scene.activeInHierarchy); Laya.timer.frameOnce(10, this, () => {   console.log('scene 2', scene.active, scene.activeInHierarchy); });   日志:   附件 : --> 2019-02-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

463. 含有List的Scene移除后List的item未移除,性能面板的Sprite一直增长 [ 49%]

...22-10-19 15:01 重写了createView; 将super.createView 替换为 let that=this; Laya.SceneUtils.createComp(a, that, that); that.hitTestPrior = true; 就会移除了,不知道会不会出其他问题T.T wxid_mq3mt1b4zxfq22 • 2022-10-20 16:55 十分感谢,这就下载2.13.2去学习。期待3.0...

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

464. Laya3d球星添加了刚体,但是碰撞无法触发onTriggerEnter的问题,120元有偿悬赏解答 [ 48%]

... QZONE 微信 159*****332 赞同来自: 看着像刚提睡着了 设置 this.m_rig.sleepLinearVelocity = 0;试试 2020-07-28 0 1 分享 微博 QZONE 微信 shiyang 赞同来自: 两个isKinematic=true的刚体不触发碰撞 2020-07-28 0 3 分享 微博 QZONE 微信 ParadiseKiss 赞同来自: 有...

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

465. 修改position与修改localPosition结果不一致(同处于3d场景下的两个节点) [ 47%]

...);  scene.addChild(res1); scene.addChild(res2);  Laya.timer.frameLoop(1, this, () => { res1.transform.localPositionX += 0.016; res2.transform.position.x += 0.016;  console.log("本地坐标1:", res1.transform.localPosition); console.log("世界坐标1:", res1.transform.position); console.log("...

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

466. laya微信小游戏加载外部素材失败 急急急 [ 46%]

...prite3D, priority: 1 } ]; Laya.loader.create(resource, Laya.Handler.create(this, onComplete), Laya.Handler.create(this, onLoading)); } function onLoading(progress){ console.log("加载进度: " + progress); } function onComplete(){ console.log('onComplete'); wx.showModal({ title: '提示', content: ...

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

467. 播放动画(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 44%]

...态 ani.play("attack"); //等待动画播放完成 Laya.timer.frameLoop(1,this,function():void{ //如果当前播放state已经播放完了一次 if(ani.getCurrentAnimatorPlayState().normalizedTime >= 1){ //回到站立状态 ani.play("stand"); } }); } ``` ![](img/6.gif)(图6)

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

468. AS3与JS混合编码(ActionScript-2D进阶篇(AS3)-扩展模块) [ 43%]

...t(0, 0); //定义一个命名空间的属性为app; Browser.window.app = this; } public static function getGameName():String { return "myGame"; } public function getVersion():String { return "1.2.0"; } } } ``` ​ 编译运行,打开浏览器控制台,先后输入`app`、`app.name`、`app.getV...

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

469. 图集制作与使用详解(JavaScript-IDE篇(JS)-使用IDE创作) [ 43%]

...使用示例 Laya.loader.load("./res/test/c1.atlas", Laya.Handler.create(this, onLoaded)); ```   `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件的图集时,...

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

470. 图集制作与使用详解(ActionScript-IDE篇(AS3)-使用IDE创作) [ 43%]

...集使用示例 Laya.loader.load("./res/atlas/test.atlas", Handler.create(this, onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件的图集时,需要...

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