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

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

221. Sprite-新手引导 [ 68%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createPage(); } createPage() { const Sprite = Laya.Sprite; // 绘制底图 gameContainer = new Sprite(); Laya.stage.addChild(gameContain...

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

222. sound manager在MOUSE_OVER事件中无法播放 [ 68%]

...ge.ALIGN_MIDDLE;             Laya.stage.alignH = Stage.ALIGN_CENTER;              Laya.stage.scaleMode = "showall";             Laya.stage.bgColor = "#232628";              this.setup();         }          private setup(): vo...

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

223. 加载-销毁Texture使用的图片资源 [ 67%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.init(); } init() { const Sprite = Laya.Sprite, Animation = Laya.Animation, Text = Laya.Text, Event = Laya.Event; // 创建...

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

224. UI-Clip [ 67%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load([buttonSkin, clipSkin, bgSkin], Handler.create(this, this.onSkinLoaded)); } onSkinLoaded() { this.showBg(); this.createTimer...

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

225. 鼠标交互-修正交互区域 [ 67%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.buildWorld(); this.createLogger(); } buildWorld() { const Event = Laya.Event; this.createCoralRec...

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

226. Sprite-屏幕截图 [ 67%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_FIXED_AUTO; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.btnArr.concat("res/apes/monkey3.png"),Laya.Handler.create(this,this.onLoaded)); } createButton(skin, name, cb, index...

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

227. laya.d3.math.OrientedBoundBox [ 67%]

...BoundBox):Boolean 判断两个包围盒是否相等 OrientedBoundBox  getCenter(center:Vector3):void 该包围盒的几何中心 OrientedBoundBox  getCorners(corners:Vector.<Vector3>):void 获取OBB包围盒的8个顶点。 OrientedBoundBox  getObbtoObbMatrix4x4(a:OrientedBoundBox, b:Ori...

来源: Laya2.0_api 发布时间: 20190513

228. 屏幕适配-屏幕适配 [ 67%]

...nMode = Stage.SCREEN_HORIZONTAL; //设置水平对齐 Laya.stage.alignH = "center"; //设置垂直对齐 Laya.stage.alignV = "middle"; //实例一个背景 var bg = new Image(); bg.skin = "../../res/bg.jpg"; Laya.stage.addChild(bg); //实例一个文本 txt = new Text(); txt.text = "点击我切换...

来源: Laya_示例 发布时间: 20251209

229. 屏幕适配-屏幕适配 [ 67%]

...nMode = Stage.SCREEN_HORIZONTAL; //设置水平对齐 Laya.stage.alignH = "center"; //设置垂直对齐 Laya.stage.alignV = "middle"; //实例一个背景 let bg = new Image(); bg.skin = "res/bg.jpg"; Laya.stage.addChild(bg); //实例一个文本 this.txt = new Text(); this.txt.text = "点击我切...

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

230. 混合模式-Lighter [ 67%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { createPhoenixes(); // 动态背景渲染 evalBgColor(); Laya.timer.frameLoop(1, this, renderBg); } function createPho...

来源: Laya_示例 发布时间: 20251209