大约有 1,470 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0057 秒)
Laya_社区(905) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(63) laya_api(2) Laya2.0_api(2)
...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, 0.5, 1)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.loader.cr...
来源: Laya_示例 发布时间: 20241118
...res/apes/monkey2.png"; let gap = 150; this.ape1 = new Sprite(); Laya.stage.addChild(this.ape1); this.ape1.loadImage(monkey2Path); // 设置轴心点为中心 this.ape1.pivot(55, 72); this.ape1.pos(Laya.stage.width / 2 - gap, Laya.stage.height / 2); // 不设置轴心点默认为左上角 this.ape2 =...
来源: Laya2.0_示例 发布时间: 20241118
...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_示例 发布时间: 20241118
...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, 0.7, 1.2)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directio...
来源: Laya_示例 发布时间: 20241118
... 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_示例 发布时间: 20241118
...00,0); var _translate = new Laya.Vector3(0, 0, 0); var dialog = Laya.stage.addChild(new Laya.Image("../../res/cartoon2/background.jpg")); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-45, 0, 0)...
来源: Laya_示例 发布时间: 20241118
... paihangbang.color="#ffffff"; list.addChild(paihangbang); // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(...
来源: Laya_社区 发布时间: 20210122
... bg.skin = "res/img/loadingBg.jpg"; Laya.stage.addChild(bg); //实例一个文本 this.txt = new Text(); this.txt.text = "适配模式("+this.modes+") "; this.txt.bold = true; thi...
来源: Laya2.0_文档 发布时间: 20200307
...ation.loadImages(images); animation.interval = 70; animation.play(0); this.addChild(animation); } Character.prototype.createBloodBar = function() { bloodBar = new Sprite(); bloodBar.loadImage("../../res/cartoon2/blood_1_r.png"); bloodBar.x = 20; this.addChild(bloodBar); } Character.prototype.createN...
来源: Laya_示例 发布时间: 20241118
... function createCanvases() { var graphicsCanvas = new Sprite(); Laya.stage.addChild(graphicsCanvas); var liveGraphicsCanvas = new Sprite(); Laya.stage.addChild(liveGraphicsCanvas); liveGraphics = liveGraphicsCanvas.graphics; canvasGraphics = graphicsCanvas.graphics; } function onMouseDown() { isDown...
来源: Laya_示例 发布时间: 20241118