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

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

1631. 急急急,如何设置按钮点击加载ani [ 78%]

...资源版本控制 ResourceVersion.enable("version.json", Handler.create(this, beginLoad), ResourceVersion.FILENAME_VERSION);         }                  private function beginLoad():void {             //加载引擎需要的资源             Laya.load...

来源: Laya_社区 发布时间: 20180725

1632. 相机(3D物体)旋转之后,xyz还是之前那个方向 [ 78%]

...)旋转之后,xyz还是之前那个方向 没旋转之前走动正常 this.camera.transform.localRotation先旋转 this.camera.transform.translate(this._tempVector3,false); 再移动 控制y轴向前走,斜着走或者是后面走,反正不正常   2020-09-09 添加评论 免费帖 --> 分...

来源: Laya_社区 发布时间: 20200909

1633. 销毁 new 出的带有 PhysicsCollider 的正方体模型报错 [ 78%]

销毁 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

1634. 3d获取组件代码bug [ 78%]

...列。 */ __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

1635. 有关继承类的问题 [ 78%]

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

1636. 新手,如何看懂官方代码? [ 78%]

...代码? 例如:官方脚本CameraMoveScript.js CameraMoveScript.super(this);这句什么意思?super这东西哪来的?我要怎么查到它的用法? this.lastMouseX = NaN;为什么用this,而不是var lastMouseX = NaN; CameraMoveScript.prototype._update = function (state){...}像这句...

来源: Laya_社区 发布时间: 20170315

1637. 显卡驱动停止响应,且大概率蓝屏,原来是Handler惹的祸,但原因是什么 [ 78%]

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

1638. Laya2.6.0 升级至Laya2.8.0 Native环境 加载ttf 字体不生效 [ 78%]

...    Laya.loader.load("res/fonts/OPPOSANS-R.TTF", Laya.Handler.create(this, (success: boolean) => {                 if (!success) {                     console.error("OPPOSANS-R ttf 字体加载失败");                 } else {  ...

来源: Laya_社区 发布时间: 20201104

1639. 红米K20pro 多个手指同时按下就会报这个错 object has in SimpleSingletonList [ 78%]

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

1640. frameLoop 函数,可以知道每帧调用的时间吗? [ 78%]

...op 函数,可以知道每帧调用的时间吗? Laya.timer.frameLoop(1,this,this.xx)  可以知道每次调用 this.xx的时间吗?如果有怎么得到。 2018-04-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

来源: Laya_社区 发布时间: 20180410