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

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

551. laya.ui.ScaleBox_API3.0 [ 42%]

... 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

552. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 42%]

...然要跳 就得有交互了 所以我们需要添加点击事件点击舞台的时候 出发player.jump(); 同样还是在RunGame.js里面  (function () { /** * 游戏入口 */ function RunGame(){ this.bg = null; this.mapFloor = null; this.player = null; RunGame.__super.call(this); this.init()...

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

553. Laya2.0 内嵌模式、加载模式、分离模式、文件模式的场景加载创建和场景打开关闭 [ 41%]

...ene和Version.scene 代码结构:新建一个LayaUI.js 最终目的:在舞台显示2个场景组合成的Laya2.0,Laya.scene通过new LayaUI类来创建显示,Version.scene直接创建 1.内嵌模式 当前版本内嵌模式发布没有数据,直接跳过 (正常应该发布到src/ui目录...

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

554. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 40%]

...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

555. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 40%]

...})(); 调用 // 创建岛屿 this.island = new IsLand(); // 岛屿添加到舞台 Laya.stage.addChild(this.island); this.island.autoSize = true; this.island.move(100,100); 没有一起移动 2017-07-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

556. laya.ui.TextInput_API3.0 [ 39%]

... 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

557. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 37%]

...到bg图像里面 bg.graphics.drawTexture(texture, 0, 0); //将bg添加到舞台 Laya.stage.addChild(bg);  我们再次刷新页面看看有什么效果   嗯 看来图片出来了~~~不错 现在我们可以开始继续了   //=======================  美丽的分割线 ======================= ...

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

558. laya.ui.TextArea_API3.0 [ 37%]

... 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

559. 【简单跑酷--JS版】---Lv.6 终篇 [ 35%]

...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