大约有 203 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
...舞台上 img1.loadImage("bg.jpg"); img2.loadImage("bg.jpg"); Laya.stage.addChild(img2); Laya.stage.addChild(img1); //给两个老婆穿上衣服,并出现在舞台上 //鼠标移动时触发的mousemove事件 function mousemove(){ point.push({ x:Laya.stage.mouseX, ...
来源: Laya_社区 发布时间: 20171018
...018-01-02 17:37 OK,摸索了一下,可以实现了 2dname = Laya.stage.addChild(new Laya.Image("res/layabox.png")); Laya.timer.frameLoop(1, this, functionname); function functionname() { camera.viewport.project(warehouse1.transform.position, camera.projectionViewMatrix, _outPos); 2dnam...
来源: Laya_社区 发布时间: 20180102
....Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this._outHitAllInfo = new Array<Laya.RaycastHit>(); //初始化照相机 this.camera = scene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; this.camera.transform.tra...
来源: Laya_社区 发布时间: 20180820
... this.arr = []; this.newScene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform...
来源: Laya_社区 发布时间: 20201120
...020-05-15 01:43 浏览: 3332 关注: 9 人 彪 • 2020-04-06 10:50 小球.addChild(摄像机) 微笑着拒绝 • 2020-04-14 20:44 大佬,你这个摄像机是怎么实现跟随刚体的呢,求帮助... 时光机器 • 2019-10-20 08:48 怎么才能同步呢?放同父物体下会导致摄像头...
来源: Laya_社区 发布时间: 20190528
...t.length) * z, 0, bg.width / letterList.length, bg.height / 2); Laya.stage.addChild(letter); letter.on("click", this, (function(para){ console.log("z:"+z+";para:"+para+";letterList[para]:"+letterList[para]); return function () { alert("z:"+z+";para:" + para + "I'm letter " + letterList[para]); }; })...
来源: Laya_社区 发布时间: 20180810
...omponent):void { this.cab.addChild(child); } public function getDevices():Array { return this.cab.getChildren(); } ...
来源: Laya_社区 发布时间: 20180202
... longgu.pos(dragronX, dragronY); parent.addChild(longgu); longgu.play(0, isLoop); longgu.on(Event.STOPPED, this, function():void { Laya.stage.removeChild(longgu); ...
来源: Laya_社区 发布时间: 20170406
... private onLoaded(): void { this.tMap.mapSprite().removeSelf(); this.owner.addChild(this.tMap.mapSprite()); } //地图加载完成的回调 private completeHandler(e: any = null): void { this.onLoaded(); } } 编译运行代码,效果如图3-3所示,说明地图已创建成功。 (图3-3) 3.3...
来源: Laya3.0_文档 发布时间: 20251010
...howApe() { // 方法1:使用loadImage var ape = new Sprite(); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("https://s2.d2scdn.com/2017/12/ ... ot%3B, Handler.create(this, function() { var t = Laya.loader.getRes("https://s2.d...
来源: Laya_社区 发布时间: 20171220