大约有 181 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0037 秒)
Laya_社区(70) Laya2.0_示例(48) Laya_示例(29) laya_api(12) Laya2.0_api(8) Laya2.0_文档(6) Laya3.0_api(5) Laya3.0_文档(3)
...uot;showall"; //不缩放 fixedauto showall Laya.stage.alignH = "center"; //水平居中 Laya.stage.alignV = "middle"; //垂直居中 this.init(); } init():void{ let btn:Laya.Button=new Laya.Button(); btn.label="AAAAAA"; btn.pos(200,200); Laya.stage.addChild(btn); ...
来源: Laya_社区 发布时间: 20171128
...); 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([bgPath, maskPath], Laya.Handler.create(this, this.setup)); } setup() { const Sprite = Laya.Sprite; let bgRes = Laya.loader....
来源: Laya2.0_示例 发布时间: 20241118
... sphereCollider = sphere.addComponent(Laya.SphereCollider); sphereCollider.center = sphere.meshFilter.sharedMesh.boundingSphere.center.clone(); sphereCollider.radius = sphere.meshFilter.sharedMesh.boundingSphere.radius; sphere.name = "球体"; //圆柱体 var cylinder = scene.addChild(new Laya.MeshS...
来源: Laya_示例 发布时间: 20241118
...50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } //private musicString:string = "./sounds/心跳的证明.mp3"; private musicString:string = "./res/心跳的证明.mp3"; private soundString:string = "./sounds/hit.wav...
来源: Laya_社区 发布时间: 20190421
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Event.MOUSE_UP, this, this.mouseUp); Stat.show(); } //...
来源: Laya2.0_示例 发布时间: 20241118
...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.flag = true; Laya.loader.load([monkey1Str, monkey2Str], Laya.Handler.create(this, this.onAssetsLoaded)); } onAssetsLoaded() { monkey1Res...
来源: Laya2.0_示例 发布时间: 20241118
...gnH=Stage.ALIGN_MIDDLE; Laya.stage.alignV=Stage.ALIGN_CENTER; btn1 = new Button(null,"显示"); btn2 = new Button(null,"销毁"); btn1.labelColors = "#ffffff,#ffffff,#ffffff"; ...
来源: Laya_社区 发布时间: 20180425
...00; letterText.height = 200; letterText.fontSize = 36; letterText.align = "center"; letterText.valign = "middle"; var offsetPos={offsetX:100,offsetY:100}; letterText.x = Laya.stage.width - letterText.width>>1 +offsetPos.offsetX; letterText.y = 400; Laya.Tween.from(letterText,{y:100},3,Laya .Ea...
来源: Laya_社区 发布时间: 20180620
...idth, te.height); } else if (_align == 'center') { this.graphics.drawTexture(te, ((this.width - (te.width * splitArr.length)) / 2) + (i * te.width)) } } ...
来源: Laya_社区 发布时间: 20170601
...0,960,Laya.WebGL); Laya.stage.scaleMode = "exactfit"; Laya.stage.alignH = "center"; var Sprite = laya.display.Sprite; var Bg = new Sprite(); Bg.loadImage("../laya/assets/bg_back.png"); Laya.stage.addChild(Bg); Bg.on(Laya.Event.MOUSE_DOWN, this, function(){ // 创建Video元素 var videoElement = Lay...
来源: Laya_社区 发布时间: 20180119