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

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

211. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 47%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.screenMode = Stage.SCREEN_VERTICAL; //Stage.SCREEN_HORIZONTAL,Stage.SCREEN_VERTICAL Laya.stage.bgColor = "#0e277a"; Laya.stage.frameRate = "fast"; Config.atlasEnable = true;   Text.CharacterCache = ...

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

212. 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_示例 发布时间: 20260106

213. 加载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

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

215. 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_示例 发布时间: 20260106

216. 骨骼动画-多纹理 [ 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_示例 发布时间: 20260106

217. 鼠标交互-自定义事件 [ 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_示例 发布时间: 20260106

218. 分享-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

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/spineRes5/vine.sk"; mFactory = new Templet(); mFactory....

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

220. 骨骼动画-橡胶人 [ 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_示例 发布时间: 20260106