大约有 1,605 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0061 秒)
Laya_社区(974) Laya2.0_文档(192) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya3.0_文档(29)
...器"; coralRect.size(Laya.stage.width, Laya.stage.height / 2); Laya.stage.addChild(coralRect); coralRect.on(Event.MOUSE_DOWN, this, this.onDown); } createDeepSkyblueRect() { const Sprite = Laya.Sprite, Event = Laya.Event; let deepSkyblueRect = new Sprite(); deepSkyblueRect.graphics.drawRect(0, 0, 10...
来源: Laya2.0_示例 发布时间: 20241123
...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_示例 发布时间: 20241123
...age.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } createTimerAnimation() { const Clip = Laya.Clip; this.counter = new Clip(clipSkin, 10, 1); Laya.stage.addChild(this.counter); this.counter.autoPlay = true; this.counter.interval = 1000; this.counter.x = (Laya....
来源: Laya2.0_示例 发布时间: 20241123
Laya.stage.addChild在别的脚本里面调用无效 现在有三个类,一个是GameStart(游戏主类),一个是Player,一个是Fire 。我在主类GameStart里面调用 Laya.stage.addChild(new Player())和Laya.stage.addChild(new Fire()),这两个精灵都能在舞台上面显...
来源: Laya_社区 发布时间: 20180828
...个背景 var bg = new Image(); bg.skin = "../../res/bg.jpg"; Laya.stage.addChild(bg); //实例一个文本 txt = new Text(); txt.text = "点击我切换适配模式(noscale)"; txt.bold = true; txt.pos(0, 200); txt.fontSize = 30; txt.on("click", this, onTxtClick); Laya.stage.addChild(txt); //实例...
来源: Laya_示例 发布时间: 20241123
...例一个背景 let bg = new Image(); bg.skin = "res/bg.jpg"; Laya.stage.addChild(bg); //实例一个文本 this.txt = new Text(); this.txt.text = "点击我切换适配模式(noscale)"; this.txt.bold = true; this.txt.pos(0, 200); this.txt.fontSize = 30; this.txt.on("click", this, this.onTxtClick); ...
来源: Laya2.0_示例 发布时间: 20241123
...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, false); var directionLig...
来源: Laya_示例 发布时间: 20241123
...LL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera1 = scene.addChild(new Laya.Camera( 0, 0.1, 100)); camera1.clearColor = new Laya.Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Laya.Vector3(0, 0, 1.5)); camera1.normalizedV...
来源: Laya_示例 发布时间: 20241123
...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.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directio...
来源: Laya_示例 发布时间: 20241123
...舞台背景色为空 Laya.stage.bgColor = "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); //3.清除照...
来源: Laya_示例 发布时间: 20241123