大约有 1,608 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0055 秒)
Laya_社区(977) Laya2.0_文档(192) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya3.0_文档(29)
...age.width,Laya.stage.height,"#FFFFFF"); Laya.stage.addChild(sp); let guideView = new MazeGuideView(); guideView.zOrder = MazeConst.gameZOrder; guideView.pos(0,0); Laya.stag...
来源: Laya_社区 发布时间: 20200119
... bg.skin = "res/img/loadingBg.jpg"; Laya.stage.addChild(bg); //实例一个文本 txt = new Text(); txt.text = "适配模式("+Stage.SCALE_EXACTFIT+") "; txt.bold = true; txt.pos(1...
来源: Laya2.0_文档 发布时间: 20200307
...LL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); //初始化照相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, fal...
来源: Laya_示例 发布时间: 20241117
...10, h = 40; const Sprite = Laya.Sprite; let btn = new Sprite(); Laya.stage.addChild(btn); btn.size(w, h); btn.graphics.drawRect(0, 0, w, h, "#FF7F50"); btn.graphics.fillText(labelText, w / 2, 8, "24px SimHei", "#FFFFFF", "center"); return btn; } // 播放音效 onPlaySound() { console.log("播放音...
来源: Laya2.0_示例 发布时间: 20241117
... new Sprite(); shakePic.loadImage("res/inputDevice/shake.png"); Laya.stage.addChild(shakePic); } showConsoleText() { const Text = Laya.Text; console = new Text(); Laya.stage.addChild(console); console.y = picH + 10; console.width = Laya.stage.width; console.height = Laya.stage.height - console.y; co...
来源: Laya2.0_示例 发布时间: 20241117
...plete() { var dialog = new Dialog(); var bg = new Image(assets[0]); dialog.addChild(bg); var button = new Button(assets[1]); button.name = Dialog.CLOSE; button.pos(DIALOG_WIDTH - CLOSE_BTN_WIDTH - CLOSE_BTN_PADDING, CLOSE_BTN_PADDING); dialog.addChild(button); dialog.dragArea = "0,0," + DIALOG_WIDTH...
来源: Laya_示例 发布时间: 20241117
...LL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 6, 10)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); var glitter = ...
来源: Laya_示例 发布时间: 20241117
...a.Button; let dialog = new Dialog(); let bg = new Image(assets[0]); dialog.addChild(bg); let button = new Button(assets[1]); button.name = Dialog.CLOSE; button.pos(DIALOG_WIDTH - CLOSE_BTN_WIDTH - CLOSE_BTN_PADDING, CLOSE_BTN_PADDING); dialog.addChild(button); dialog.dragArea = "0,0," + DIALOG_WIDTH...
来源: Laya2.0_示例 发布时间: 20241117
...prite(); shakePic.loadImage("../../res/inputDevice/shake.png"); Laya.stage.addChild(shakePic); } function showConsoleText() { console = new Text(); Laya.stage.addChild(console); console.y = picH + 10; console.width = Laya.stage.width; console.height = Laya.stage.height - console.y; console.color = "...
来源: Laya_示例 发布时间: 20241117
...0; hs.tick = 1; hs.changeHandler = new Handler(this, onChange); Laya.stage.addChild(hs); } function placeVSlider() { var vs = new VSlider(); vs.skin = "../../res/ui/vslider.png"; vs.height = 300; vs.pos(400, 50); vs.min = 0; vs.max = 100; vs.value = 50; vs.tick = 1; vs.changeHandler = new Handler(th...
来源: Laya_示例 发布时间: 20241117