大约有 495 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
...ra: Laya.Camera; onStart() { //@ts-ignore window.camera = this.camera; console.log("Game start", this.camera._up); console.log( "Game start", this.camera._up.x, this.camera._up.y, this.camera._up.z ); } } 附件 : --> testProj...
来源: Laya_社区 发布时间: 20241029
...Array = new Array(); spriteArray.push(warehouse1); Laya.timer.frameLoop(1, this, freshBubble,spriteArray); function freshBubble(sprites) { var spr = sprites[0]; xp = (((-25) - cameraX) * ((-25) - cameraX)+( 0 - cameraY) * ( 0 - cameraY) + ( 0 - cameraZ)*( 0 - cameraZ)); camera.viewport.project(spr.t...
来源: Laya_社区 发布时间: 20180105
...ld(ape); ape.loadImage("../../res/apes/monkey3.png"); //创建遮罩对象 this.cMask = new Laya.Sprite(); //画一个圆形的遮罩区域 this.cMask.graphics.drawPie(80,80,50, 0, 360,"#ff0000"); this.cMask.pivot(80,80); //Laya.stage.addChild(this.cMask); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, ...
来源: Laya_社区 发布时间: 20180313
...么写 var sg_sign = (function(_super){ function sg_sign(){ sg_sign.super(this); this.btn_wxsign.on(Laya.Event.CLICK,this,this.onWxSign); this.reset(); } Laya.class(sg_sign,"sg_sign",_super); var _proto = sg_sign.prototype; _proto.reset = function(){ Laya.SoundManager.playMusic('res/sound/sign_bgm.m...
来源: Laya_社区 发布时间: 20170725
...operty '_tf' of null [Error] TypeError: null is not an object (evaluating 'this._style._tf') Uncaught TypeError: Cannot read property 'indexCount' Uncaught TypeError: Cannot read property 'LayaMotionState' of undefined 问题状态 最新活动: 2019-01-14 15:45 浏览: 1726 关注: 4 人
来源: Laya_社区 发布时间: 20190114
...管理。 Laya.ResourceVersion.enable("verson.json", Laya.Handler.create(this, this.startGame), Laya.ResourceVersion.FOLDER_VERSION); laya2.0, layacmd 版本是2.1.23 在发布时,用了这个命令: 'layacmd resourceVersion -i res -o bin -n 1000' 或者用这个命令:'layaair-cmd resource...
来源: Laya_社区 发布时间: 20191009
...问题 测试代码: private sysActiveScene(){ var light = this.battleScene.getChildByName("directional_light"); light.active = !light.active; TimerManager.instance.setTimeout(this.sysActiveScene,this,500); } this.sysActiveScene();就是每0.5秒设置...
来源: Laya_社区 发布时间: 20191012
...Demo() { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("unpack.json"); var str:String=JSON.stringify(json); trace(str); } } } 2017-08-07 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20170807
...("load"); Laya.loader.create("TestScene/TestScene.ls", Laya.Handler.create(this, this.LoadSceneComplete)); } LoadSceneComplete() { console.log("finish") let scene: Laya.Scene = Laya.loader.getRes("TestScene/TestScene.ls") as Laya.Scene; // scene.enableLight = true; Laya.stage.addChild(scene); } } ne...
来源: Laya_社区 发布时间: 20171227
...ity导出一个文件,然后layabox中加载场景。 Laya.loader.create(this.strScene, Laya.Handler.create(this, this.onLoadScene)); private onLoadScene() { var scene: Laya.Scene = Laya.Scene.load(this.strScene); if (scene == null) { return; } this.mScene = scene; 大致的流程如上 错...
来源: Laya_社区 发布时间: 20180418