大约有 559 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0076 秒)
Laya_社区(350) Laya3.0_api(62) Laya2.0_api(57) laya_api(53) Laya2.0_文档(27) Laya3.0_文档(8) Laya2.0_示例(1) Laya_示例(1)
... Stage Inherited from Text.stage Defined in laya/display/Sprite.ts:1656 对舞台 stage 的引用。 Returns Stage staticCache get staticCache(): boolean set staticCache(value: boolean): void Inherited from Text.staticCache Defined in laya/display/Sprite.ts:389 设置cacheAs为非空时此值才有...
来源: Laya3.0_api 发布时间: 20231115
...然要跳 就得有交互了 所以我们需要添加点击事件 当点击舞台的时候 出发player.jump(); 同样还是在RunGame.js里面 (function () { /** * 游戏入口 */ function RunGame(){ this.bg = null; this.mapFloor = null; this.player = null; RunGame.__super.call(this); this.init()...
来源: Laya_社区 发布时间: 20160801
...ene和Version.scene 代码结构:新建一个LayaUI.js 最终目的:在舞台显示2个场景组合成的Laya2.0,Laya.scene通过new LayaUI类来创建显示,Version.scene直接创建 1.内嵌模式 当前版本内嵌模式发布没有数据,直接跳过 (正常应该发布到src/ui目录...
来源: Laya_社区 发布时间: 20181028
...andler.create(null, function (_Scene3D: Laya.Scene3D) { //添加3D场景到舞台 Laya.stage.addChild(_Scene3D); let _camera = _Scene3D.getChildByName("Main Camera") as Laya.Camera; _camera.clearFlag = Laya.CameraClearFlags.Sky; //从场景中找到圆柱对象 let _cylinder = _Scene3D.getChildByNam...
来源: Laya2.0_文档 发布时间: 20210715
...})(); 调用 // 创建岛屿 this.island = new IsLand(); // 岛屿添加到舞台 Laya.stage.addChild(this.island); this.island.autoSize = true; this.island.move(100,100); 没有一起移动 2017-07-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20170720
... Stage Inherited from Text.stage Defined in laya/display/Sprite.ts:1656 对舞台 stage 的引用。 Returns Stage staticCache get staticCache(): boolean set staticCache(value: boolean): void Inherited from Text.staticCache Defined in laya/display/Sprite.ts:389 设置cacheAs为非空时此值才有...
来源: Laya3.0_api 发布时间: 20231115
...到bg图像里面 bg.graphics.drawTexture(texture, 0, 0); //将bg添加到舞台 Laya.stage.addChild(bg); 我们再次刷新页面看看有什么效果 嗯 看来图片出来了~~~不错 现在我们可以开始继续了 //======================= 美丽的分割线 ======================= ...
来源: Laya_社区 发布时间: 20160722
... Stage Inherited from Text.stage Defined in laya/display/Sprite.ts:1656 对舞台 stage 的引用。 Returns Stage staticCache get staticCache(): boolean set staticCache(value: boolean): void Inherited from Text.staticCache Defined in laya/display/Sprite.ts:389 设置cacheAs为非空时此值才有...
来源: Laya3.0_api 发布时间: 20231115
...Value 来让外部控制 能量条的 进度 我们把能量条都添加到舞台上面吧~~ 打开runGame.js(function () { /** * 游戏入口 */ function RunGame(){ this.bg = null; this.mapFloor = null; this.player = null; this.flyEnergy = null; this.speedEnergy = null; RunGame.__super.call(this); ...
来源: Laya_社区 发布时间: 20160803