大约有 632 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0048 秒)
Laya_社区(254) Laya2.0_示例(114) Laya2.0_文档(94) Laya_示例(92) Laya3.0_api(34) Laya2.0_api(21) Laya3.0_文档(15) laya_api(8)
....alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { normalizeApe(); makeRedApe(); grayingApe(); } function normalizeApe() { var originalApe = createApe(); apeTexture = Laya.lo...
来源: Laya2.0_文档 发布时间: 20210714
...Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { const Event = Laya.Event; let vGap = 100; this.button1 = this.createButton("点我3秒之后 alpha - 0.5"); this.button1.x = (Laya.stage.width - this.button1.width) ...
来源: Laya2.0_示例 发布时间: 20241118
...; Laya.Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_AUTO; Laya.Laya.stage.bgColor = "#232628"; this.createSensor(); } createSensor() { let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let groundBody = new Laya.RigidBody(); groundBody.type = "static"; ground.addComponentIntance(grou...
来源: Laya2.0_示例 发布时间: 20241118
...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; // 创建背景 this.spBg = Sprite.fromImage(PathBg); Laya.stage.addChild...
来源: Laya2.0_示例 发布时间: 20241118
...rue; //设置画布是否透明,只对2D(WebGL)、3D有效。 Laya.stage.bgColor = "none"; //背景透明 } else { Laya.init(800, 600); Laya.stage.bgColor = null; //背景透明 } //画布水平居中对齐 Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; //画布垂直居中对齐 Laya.stage.alignV =...
来源: Laya_社区 发布时间: 20170803
...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.createTimerAnimation(); this.showTotalSeconds(); this.createController(); ...
来源: Laya2.0_示例 发布时间: 20241118
...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.createCoralRect(); this.createDeepSkyblueRect(); this.createDarkOrchidRect();...
来源: Laya2.0_示例 发布时间: 20241118
...ge.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) { var btn = new Laya.Button(skin,name); Laya.stage.addChild(btn)...
来源: Laya2.0_示例 发布时间: 20241118
...分辨率是550 * 400 var phoenixWidth = 550; var phoenixHeight = 400; var bgColorTweener = new Tween(); var gradientInterval = 2000; var bgColorChannels = { r: 99, g: 0, b: 0xFF }; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(phoenixWidth * 2, phoenixHeight, WebGL); Laya.stage....
来源: Laya_示例 发布时间: 20241118
...f"; txt.pos(60, 100); Laya.stage.bgColor = "#ffff00"; Laya.stage.addChild(txt); } } } 2017-10-25 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: LayaAir引擎初始化之前不能继承,也不能...
来源: Laya_社区 发布时间: 20171025