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

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

211. Sprite-节点控制 [ 47%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createApes(); } createApes() { const Sprite = Laya.Sprite; let monkey2Path = "res/apes/monkey2.png"; this.ape1 = new Sprite(); this.ape2 = new Sprite(); this.ape1.loadImage(...

来源: Laya2.0_示例 发布时间: 20251130

212. 加载TiledMap 不显示 [ 47%]

... Stage.ALIGN_CENTER;          // Laya.stage.scaleMode = Stage.SCALE_SHOWALL;         Laya.stage.bgColor = "#232628";          this.createMap();          Laya.stage.on("click", this, this.onStageClick);     }      private createMap(): void {   ...

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

213. Clip属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 47%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; //预加载资源 Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { showBg(); createTimerAnimation(...

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

214. Sprite-轴心点 [ 46%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createApes(); } createApes() { const Sprite = Laya.Sprite; let monkey2Path = "res/apes/monkey2.png"; let gap = 150; this.ape1 = new Sprite(); Laya.stage.addChild(this.ape1);...

来源: Laya2.0_示例 发布时间: 20251130

215. 骨骼动画-多纹理 [ 46%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactor...

来源: Laya2.0_示例 发布时间: 20251130

216. 鼠标交互-自定义事件 [ 46%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.createSprite(); } createSprite() { const Sprite = Laya.Sprite, Event = Laya.Event; this.sp = new Sprite(); this.sp.graphics.drawRect(0...

来源: Laya2.0_示例 发布时间: 20251130

217. 分享-js资源进度加载 [ 46%]

...Stage.ALIGN_MIDDLE; //设置适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; //设置横竖屏 Laya.stage.screenMode = 'none'; //显示帧频信息 Laya.Stat.show(); //加载进度ui var arr = [{ url: "res/atlas/Progress.json", type: Laya.Loader.ATLAS }]; Laya.loader.load(arr, Laya.Hand...

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

218. 骨骼动画-藤蔓 [ 46%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes5/vine.sk"; mFactory = new Templet(); mFactory....

来源: Laya2.0_示例 发布时间: 20251130

219. 骨骼动画-橡胶人 [ 46%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes4/stretchyman.sk"; mFactory = new Templet(); mF...

来源: Laya2.0_示例 发布时间: 20251130

220. VScrollBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 46%]

...e.alignH = Stage.ALIGN_CENTER; //等比缩放 Laya.stage.scaleMode = Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(skins, Handler.create(this, onSkinLoadComplete)); } /***加载资源完成***/ private function onSkinLoadComplete(e:*=null):void {...

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