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

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

461. Laya.class底层原理是什么 [ 80%]

...iedName:String — 类的完全限定名称。如Laya.class(a, "a.b.c", null)可以通过new a.b.c()创建实例    superClass:Function — 父类引用    miniName:String — 通过Laya.miniName访问类,只有在fullQulifiedName以laya开头时生效。如Laya.class(a, "a.b", null)可...

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

462. 加载到舞台的3D模型不显示贴图 [ 80%]

...ddChild(new Laya.Sprite3D()); staticMesh.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { var meshSprite = sprite.getChildAt(0);//此对象不一定是MeshSprite3D类型,会导致出错 var mesh = meshSprite.meshFilter.sharedMesh; mesh.once(Laya.Event.LOADED, null, function (mesh) { for...

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

463. BUG:Sprite.event() [ 80%]

...的确有问题,data.unshift没有判断是否是数组 if (this.method==null)return null; var id=this._id; if (data==null) var result=this.method.apply(this.caller,this.args); else if (!this.args && !data.unshift)result=this.method.call(this.caller,data); else if (this.args)result=this.me...

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

464. laya.display.AnimationBase [ 80%]

...面更新之后。 AnimationBase callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Node  clear():AnimationBase 停止动画播放,并清理对象属性。之后可存入对象池,方便...

来源: Laya2.0_api 发布时间: 20190513

465. clearRes内存泄漏 [ 80%]

...链接 提交 3 个回复 OneWay 赞同来自:  Laya.loader.load(urlPath, null, null, "image", 1, true, this._group); load的时候缓存参数要设置为true才能被清理掉,不缓存的资源系统是不管理的,清理得自己处理,比如自己保存资源的引用然后销毁资源 ...

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

466. laya.d3.physics.PhysicsSimulation_API3.0 [ 80%]

...体。 Parameters ray: Ray 射线 Default value outHitResult: HitResult = null Default value distance: number = 2147483647 射线长度,默认为最大值 Default value collisonGroup: number = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER 射线所属碰撞组。 Default value collisionMask: number ...

来源: Laya3.0_api 发布时间: 20231115

467. 使用laya官方示例代码制作微信小游戏无法显示 [ 80%]

...2628"; this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100); this.createLabel("#FFFFFF", "#00FFFF").pos(30, 150)...

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

468. IOs使用手动删除本地资源再次进去加载问题 [ 80%]

...oader.IMAGE},     ]     Laya.loader.load(res_array, Handler.create(null, onLoaded)); }  function onLoaded() {     var res_array = [         {url : "res/atlas/comp.atlas", type : Laya.Loader.ATLAS},     ]     Laya.loader.load(res_array, Handler.create(null, onLoaded2)); ...

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

469. 泄漏问题,望排查 [ 80%]

...er修改建议:1:clear和clearAll里面移除 this._map[handler.key] = null和handler.key = ""这两句 :2:runTimer里移除this._map[handler.key] = null 3:_recoverHandler里this._map[handler.key] = null这一句换成delete this._map[handler.key] Laya_Fred • 2021-09-23 10:31 @...

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

470. 按钮失效,同UI里的一个图片超链接点击后再返回,出现按钮失效。 [ 80%]

...+100; }  //事件注册 //开始游戏 this.StartLeft.on(Laya.Event.CLICK,null,function(){ //TO GamePage2 console.log("left onclick"); Laya.stage.addChild(new GameView); });  //分享快乐 this.StartRight.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(href); });  //天猫Logo this.img_T...

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