大约有 483 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0052 秒)
...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
...('scene', scene.active, scene.activeInHierarchy); Laya.timer.frameOnce(10, this, () => { console.log('scene 2', scene.active, scene.activeInHierarchy); }); 日志: 附件 : --> 2019-02-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20190218
...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
... 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
...); 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
...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
...态 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
...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
...使用示例 Laya.loader.load("./res/test/c1.atlas", Laya.Handler.create(this, onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件的图集时,...
来源: Laya2.0_文档 发布时间: 20210715
...集使用示例 Laya.loader.load("./res/atlas/test.atlas", Handler.create(this, onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件的图集时,需要...
来源: Laya2.0_文档 发布时间: 20210714