大约有 4,103 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0125 秒)
Laya_社区(3324) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...yaMonkey2/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { ........ //上面省略,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function() { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行...
来源: Laya2.0_文档 发布时间: 20210715
... laya/filters/BlurFilter.ts:34 Returns Float32Array Static _filter _filter(this: RenderSprite, sprite: Sprite, context: Context, x: number, y: number): void Inherited from BlurFilter._filter Defined in laya/filters/Filter.ts:38 Parameters this: RenderSprite sprite: Sprite context: Context x: number ...
来源: Laya3.0_api 发布时间: 20231115
...是不可以挂载到3d场景的子节点上的,会报 Uncaught TypeError: this.owner.localToGlobal is not a function TypeError: this.owner.localToGlobal is not a function 这个错误. 如果可以用2D引擎挂载到3D物体上,也是可以解决我现在的问题,如果这个方面可以有解决...
来源: Laya_社区 发布时间: 20190714
... = Stage.SCREEN_NONE; Stat.show(); //Laya.stage.on(Event.RIGHT_MOUSE_DOWN, this, Destruction); scene = Main.box3D.addChild(new Scene3D()) as Scene3D; camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.rotate(new Vector3(10, 0, 0), true, false); camera.addComponent(CameraMov...
来源: Laya_社区 发布时间: 20181017
...编译优化中的常量替换,但是为什么第二个参数不替换?this.setMask(1, Constant.HERO_MASK); 现在的问题是,如果我只修改Constant.as中DEFAULT_MASK的值,而没有修改Hero.as文件 在点击IDE上面的编译按钮时,根本不会触发这一段的修改,一直...
来源: Laya_社区 发布时间: 20171010
...是我,展示出牌与不出牌框 if (seat == this.myInfo.seat) { this.canSelect = true; // game.roomView.outYes.visible = false; game.roomView.outYes.visible = true; ...
来源: Laya_社区 发布时间: 20180723
...nd._musicAudio; }else { /* if(MiniSound._audioCache[this.readyUrl]){ tSound=MiniSound._audioCache[this.readyUrl]._sound; }else{*/ tSound=MiniSound._createSound(); // } 改成这样就OK了 2018-08-20 0 0 分享 微博 ...
来源: Laya_社区 发布时间: 20180817
...通过 Laya.Scene.load('sample/Conventional/Main.ls',Laya.Handler.create(this,this.onComplete)); 这个语句调用就报错了,我断点发现props这个属性是undefined的 if (!obj.props) throw "Scene data is error:" + url; 2020-08-04 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20200804
...// 尝试获取当前位置 Geolocation.getCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确度:' + info.ac...
来源: Laya_社区 发布时间: 20180402
...("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