大约有 1,020 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
...,怎么删除释放资源? web端打包发布后能不能自动删除console.log 3D场景中加入lh精灵,再删除后有时会出问题。 龙骨删除后内存不减少 3D特效播放速度和结束监听 List不能监听MouseMove,怎么判断是长按拖动还是滑动 场景文件挂载...
来源: Laya_社区 发布时间: 20250220
...roto.changeClips=function(){ var img=Loader.getRes(this._skin); if (!img){ console.log("lose skin",this._skin); return; }; var width=img.sourceWidth; var height=img.sourceHeight / this._stateNum; img.$_GID || (img.$_GID=Utils.getGID()); var key=img.$_GID+"-"+this._stateNum; var clips=AutoBitmap.getC...
来源: Laya_社区 发布时间: 20170516
...ctHandler = new Laya.Handler(this, onSelect); } function onSelect(index) { console.log("当前选择的标签页索引为:" + index);); this.Tab_ZM.on(Event.CLICK,this,onDaoju(index)); } 想请问下,这样添加,我上面点击事件只执行一次,就连打印出onSelect里的东...
来源: Laya_社区 发布时间: 20170516
...错误 laya2.0 GameConfig怎么更新有scene的脚本? laya如何重写console.log 打印错误跟信息到自己写的日志面板上 问题状态 最新活动: 2020-03-04 09:36 浏览: 793 关注: 1 人
来源: Laya_社区 发布时间: 20200303
...r.create(this, this.Onloaded), null, Laya.Loader.TEXT,0,true,null,true); //console.log(Laya.Loader.loadedMap); } 另外就是加载的时候,不缓存资源,就不能读取文本内容。 1 let event1=Laya.loader.load("eyeimf.txt", Laya.Handler.create(this, this.Onloaded), null, Laya.Loader.TEXT...
来源: Laya_社区 发布时间: 20171228
...') Laya.stage.addChild(a) }), Laya.Handler.create(null, function (value) { console.log('加载进度:' + value) }, null, false)) 项目是微信小游戏 基本就是laya默认的2d微信小游戏里子 我就试试加载 然后用微信开发者工具测试 加载的图片不能全部加载 无...
来源: Laya_社区 发布时间: 20180808
Uncaught Can not find class laya.ani.bone.Skeleton 新建项目 console.log(Laya.Skeleton)为undefine 场景里放入.sk动画 运行报错Can not find class laya.ani.bone.Skeleton 附件 : --> 2020-05-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20200504
...), new Handler(this, completeHandler)); function completeHandler(params) { console.log("brj laya h5 加载完成.."); } 2017-09-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 建议...
来源: Laya_社区 发布时间: 20170918
...ltPhysicsMemory'] = 30; Laya3D.init(GameConfig.width, GameConfig.height); console.log(window.Physics3D) ``` 分析Physics3D里面的几个变量 发现内存占用超大. HEAP8,HEAPU8 这2个对象是同一个么. 都是30M字节长度数组. 而且内容是重复的. 现在再优化内存. 看...
来源: Laya_社区 发布时间: 20190612
...须拥有碰撞组件(Collider) //当被鼠标点击 onMouseDown(e){ //console.log("点击到了我box",owner.name); //从父容器销毁我自己 this.owner.removeSelf(); } } ``` > **主类**: ```typescript //给四个猴子添加脚本 this.staticLayaMonkey.addComponent(MouseScript); this.laya...
来源: Laya2.0_文档 发布时间: 20210715