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

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

11. [LayaAir3]Spine释放后,纹理不会被释放掉 [ 77%]

...QZONE 微信 nate(杨纯) 赞同来自: 因为你是闹闹啊  if (tmpDat instanceof Laya.SpineTemplet) {        let obj: object = tmpDat["_textures"];        for (let key in obj) {            if (obj.hasOwnProperty(key)) {                let texture = obj[key] as Laya.SpineTe...

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

12. [LayaAirIDE3]时间轴动画调了材质引用类型的属性,调用play()接口切状态的时候调用_revertDefaultKeyframeNodes报材质属性空 [ 70%]

...--begin------------------------------                 if (property instanceof Material) {                     switch (node.type) {                         case KeyFrameValueType.Float:                             property = property.getFloat(node.getProper...

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

13. [LayaAir3]我直接将整个项目导出,使用Android Studio打开编译,然后构建运行,连接手机结果打开项目就闪退? [ 69%]

...esponse}`, response.status, errorResponse ); } } catch (error) { if (error instanceof HttpException) { throw error; } else if (error instanceof Error) { throw new Error(`Network error: ${error.message}`); } else { throw new Error("Unknown network error occurred"); } } }); } 大概报错。联系方...

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

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

...dMeshes(meshSprite); }); function handleSharedMeshes( meshSP ){ if( meshSP instanceof Laya.MeshSprite3D ){ var mesh = meshSP.meshFilter.sharedMesh; mesh.once(Laya.Event.LOADED, null, function (mesh) { for (var i = 0; i < meshSP.meshRender.sharedMaterials.length; i++) { var material = meshSP.meshR...

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

15. 关于对象类型判断 [ 64%]

...33 js中有is这个东西吗? 陆仁毅 • 2019-09-17 10:22 as3会编成instanceof

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

16. 微信小游戏,文字changeText后变卡 [ 64%]

...用changeText后,_fast_filltext函数中,data会变成文字,不是 instanceof WordText, isWT会变成false,会导致每一帧都会计算this.charRender.getWidth(this.fontStr, str), 在微信小游戏的真机上,会影响性能。 2019-11-26 添加评论 免费帖 --> 分享 微博 Q...

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

17. [LayaAir3]3.3.0-beta.4已知新bug汇总 [ 62%]

... null; } if (typeof (param) === "function") complete = param; if (progress instanceof Handler) { let h = progress; progress = (value: number) => h.runWith(value); } // @ts-ignore return Scene._load(url, progress).then(scene => { scene.open(closeOther, param); if (complete instanceof Handler) c...

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

18. 释放资源与阴影冲突的问题 [ 62%]

...ap; for (let k in idResourcesMap) { let res = idResourcesMap[k]; if (!(res instanceof RenderTexture) && !res.lock && res._referenceCount === 0) res.destroy(); } } 2019-10-13 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ...

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

19. 请问如何给ui下所有的button加一个点击监听事件? [ 62%]

....stage.on(Laya.Event.CLICK, this, function(res:Laya.Event){ if (res.target instanceof Laya.Button){ // click button } }) 2018-12-01 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 183*****288 相关问题 两个对象new了一个相同的...

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

20. 自定义shader 在未指定webgl 模式下 setIBVB参数应该如何设置 [ 61%]

...void{ this.shaderValue.iTime += this.animeValue; let webgl2d = context.ctx instanceof Laya.WebGLContext2D if( webgl2d) (context.ctx as Laya.WebGLContext2D).setIBVB( x, y, this.iBuffer, this.vBuffer, this.iNum,null, WaterFlowShader.shader, this.shaderValue, 0, 0); } 2018-07-12 添加评论 免费帖 ...

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