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

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

3141. drawToCanvas无法释放内存 [ 54%]

drawToCanvas无法释放内存 Laya.stage.frameLoop(1, this, ZX);function ZX():void{ var tex:Texture=new Texture(sp.drawToCanvas(sp.width,sp.height,0,0))             sp.graphics.clear()             sp.graphics.destroy()             tex.destroy()         ...

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

3142. 自定义控件能否放在任意目录 [ 54%]

...Manager.getWorkPath("laya/custom"); console.log("customUI:",uiConfigPath); this.initCustomUIConfig(uiConfigPath,false); 也就是把教程的里的东西搬到 自己的项目路径/laya/custom 下 2018-05-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...

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

3143. skin换肤这个接口完全没效果啊! [ 54%]

...in换肤这个接口完全没效果啊! 当按钮在代码里面换皮肤this.btn.skin =' btns/btn2.png' 后 只有鼠标滑动上去才会显示换肤后的效果 资源已经确定预加载了 没问题 2017-04-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

3144. ts如何调用js函数? [ 54%]

....result; cropper = $('.imageBox').cropbox(options); } reader.readAsDataURL(this.files[0]); }) $('#btnCrop').on('click', function(){ var img = cropper.getDataURL(); //$('.cropped').append('<img src="'+img+'">'); }) } 如果直接在ts里面写,报错,那么如果放在js里面。。如何...

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

3145. 快速移动的物体,不能发生碰撞检测,ccd开启也检测不到 [ 54%]

...物体,不能发生碰撞检测,ccd开启也检测不到 let rigfoot=this.foot.addComponent(laya.d3.physics.Rigidbody3D) as laya.d3.physics.Rigidbody3D rigfoot.isKinematic=true rigfoot.ccdMotionThreshold=0.001 rigfoot.ccdSweptSphereRadius=100   不能检测碰撞,还是会穿过物体。物...

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

3146. async bug 导出小游戏 [ 54%]

...onsole.log(a) }   转换后代码   onShareClick() { // return __awaiter(this, void 0, void 0, function* () { // let share = SDKCenter.getShare(); // share.title = ShareNormal; // share.imageUrl = ShareImgUrl; // let a = yield share.shareAppMessage(); // console.log(a); // }); 修改后正常代...

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

3147. LoaderManager的_loadAssets方法 completeHandler是否有内存问题 [ 54%]

...会在load中没有被回收的情况,导致了Handler中还存在其他this的一个引用,导致内存泄露//complete && complete.clear(); //progress && progress.clear(); 我自己测试加上的 附件 : --> 2018-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

3148. laya3d用Laya.loader.create加载3d资源报错 [ 54%]

...个方法加载3D资源的时候报错,报错:Error: model file err,no this function:65461 undefined 2018-11-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 模型导出不正确吧 ...

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

3149. laya2.12 textInput组件 [ 54%]

...****593 赞同来自: 可以先按照我图示中的修改,加上input = this.nativeInput这句话,这个问题会同步到后面的版本,感谢反馈 2021-05-17 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发...

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

3150. 音乐文件能预加载吗 [ 54%]

...载type是Loader.SOUND Laya.loader.load("xxx/xxx/xxx.mp3", Handler.create(this, onLoaded),null,Loader.SOUND);   2018-04-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 apmhot 相关问题 2.0一不小心删了bin目录下的某个场...

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