大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0082 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...资源版本控制 ResourceVersion.enable("version.json", Handler.create(this, beginLoad), ResourceVersion.FILENAME_VERSION); } private function beginLoad():void { //加载引擎需要的资源 Laya.load...
来源: Laya_社区 发布时间: 20180725
...)旋转之后,xyz还是之前那个方向 没旋转之前走动正常 this.camera.transform.localRotation先旋转 this.camera.transform.translate(this._tempVector3,false); 再移动 控制y轴向前走,斜着走或者是后面走,反正不正常 2020-09-09 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20200909
销毁 new 出的带有 PhysicsCollider 的正方体模型报错 this.box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))) as Laya.MeshSprite3D; this.box.addComponent(Laya.PhysicsCollider); this.box.destroy();引擎版本 LayaAirIDE2.0_beta.5 报错: Uncaught TypeError: Cannot r...
来源: Laya_社区 发布时间: 20190118
...列。 */ __proto.getComponentsByType=function(type,components){ var index=this._componentsMap.indexOf(type); if (index===-1) components.length=0; //这里应该返回了!!!!!!!!!! var typeComponents=this._typeComponentsIndices[index]; var count=typeComponents.length; components.length=count; for (v...
来源: Laya_社区 发布时间: 20170630
... Building = (function (_super){ function Building(params) { Building.super(this); } Laya.class(Building,"Building",_super); return Building; })(Laya.Sprite) //床 var Bed = (function (_super){ function Bed(params) { Bed.super(this); } Laya.class(Bed,"Bed",Building); return Bed; })() var Hom...
来源: Laya_社区 发布时间: 20171106
...代码? 例如:官方脚本CameraMoveScript.js CameraMoveScript.super(this);这句什么意思?super这东西哪来的?我要怎么查到它的用法? this.lastMouseX = NaN;为什么用this,而不是var lastMouseX = NaN; CameraMoveScript.prototype._update = function (state){...}像这句...
来源: Laya_社区 发布时间: 20170315
...eteHandler:Handler; public function A() { completeHandler = Handler.create(this,onComplete,[this]); completeHandler.run(); new B().load(completeHandler); trace('A',completeHandler.method == null,completeHandler['_id']) } private function onComplete():void { trace('haha') } } }package { import laya.u...
来源: Laya_社区 发布时间: 20170330
... Laya.loader.load("res/fonts/OPPOSANS-R.TTF", Laya.Handler.create(this, (success: boolean) => { if (!success) { console.error("OPPOSANS-R ttf 字体加载失败"); } else { ...
来源: Laya_社区 发布时间: 20201104
...: laya.d3.js -> SimpleSingletonList.Clear -> for (var i = 0, n = this.length; i < n; i++) 引擎代码 i没有赋初值,导致 i<n永远为false. 2020-03-21 2 1 分享 微博 QZONE 微信 腊笔小新 赞同来自: 186*****645 clear() { var elements = this.elements; ...
来源: Laya_社区 发布时间: 20200206
...op 函数,可以知道每帧调用的时间吗? Laya.timer.frameLoop(1,this,this.xx) 可以知道每次调用 this.xx的时间吗?如果有怎么得到。 2018-04-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...
来源: Laya_社区 发布时间: 20180410