• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 495 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)

121. [LayaAir3]V3.2 | 调试结果不一致,导致无法判断结果? [ 74%]

...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

122. 回调函数传递sprite3D问题 [ 74%]

...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

123. DrawPie例子中无法显示遮罩区域 [ 74%]

...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

124. 请问UI之间的场景切换要怎么写 [ 74%]

...么写 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

125. TypeError: Laya.MovieClip is not a constructor [ 74%]

...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

126. 'resourceVersion' is not a layaair-cmd command. See 'layaair-cmd --help' [ 74%]

...管理。 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

127. 场景directional_light,active问题 [ 74%]

...问题 测试代码: 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

128. 分享:LayaAir下如何加载和使用.JSON文件! [ 74%]

...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

129. 载入场景报错 [ 74%]

...("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

130. ls文件导入错误 [ 74%]

...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