大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0094 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
... LM20081991 • 2018-01-25 10:10 能否举一个例子,比如我现在是 this.skill = new Laya.Animation(); this.skill.play(); 就是播放技能的动画。是this.skill.interva()这样吗, 中间有没有什么参数?
来源: Laya_社区 发布时间: 20180125
...检测,这么写运行就提示没有该方法 Laya.Physics.rayCastAll(this.ray, this.outHitAllInfo, 30, 0); RaycastHit 是在创建是时候就报错了 提示没有这个东西。 看官方网站介绍,该勾选的类库我都勾选了,运行还是不行。 2018-12-19 添加评论 免费帖 ...
来源: Laya_社区 发布时间: 20181219
...params = ["move"]; test_e.time = 0.2; let test_cp:Laya.AnimationClip = this._ani.getDefaultState().clip; test_cp.addEvent(test_e); test_cp.on("move_over",this,this.test_over); 预想是播放到0.2秒就会发送"move_over",但事实好像不是这样的,那么怎么监听 通过addEvent...
来源: Laya_社区 发布时间: 20190813
...运行效果与调试效果不一致(sprite,child) Laya.timer.frameLoop(1,this,this.run()); public run():void{ var childs:Array<Laya.Sprite> = this._childs; childs.sort(this.sortHandler); } public sortHandler(left:Laya.Sprite,right:Laya.Sprite):number{ return left.y-right.y; } ...
来源: Laya_社区 发布时间: 20180228
...资源版本控制 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