大约有 3,269 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0074 秒)
...matter库的引用 <script type="text/javascript" src="libs/matter.js"></script> <script type="text/javascript" src="libs/LayaRender.js"></script> 2、为了导出小程序,需要进行wx适配的初始化,在ts/js文件中增加MiniAdpter.init(); //程序入口 Laya.Mini...
来源: Laya_社区 发布时间: 20180628
...nexpected token in JSON at position 134 at JSON.parse (<anonymous>) at Function.MiniAdpter.getJson (http://127.0.0.1:15089/game/code.js:10708:15) at Function.MiniLoader.onReadNativeCallBack (http://127.0.0.1:15089/game/code.js:14608:25) at Handler.__proto.runWith (http:...
来源: Laya_社区 发布时间: 20180531
...加启动参数可以解决跨域问题。 在chrome浏览器快捷方式->右击打开属性->快捷方式一栏->目标末尾添加 --allow-file-access-from-files 打开快捷方式,将转换后自动生成的html文件拖拽至chrome浏览器即可正常显示。 2018-01-11 0 1 分享 ...
来源: Laya_社区 发布时间: 20180111
...转换后的z值得问题,这个z的为什么要这样判断 z<0 || z>1 __proto.worldToViewportPoint=function(position,out){ Matrix4x4.multiply(this._projectionMatrix,this._viewMatrix,this._projectionViewMatrix); this.viewport.project(position,this._projectionViewMatrix,out); var outE=out.el...
来源: Laya_社区 发布时间: 20171229
...temByClass("mybg",BackGround); Laya.stage.addChild(bg1); console.log("bg1->",bg1); //对象放回Pool里,并清除对象 Laya.Pool.recover("mybg",BackGround); bg1.removeSelf(); Laya.stage.removeChild(bg1); console.log("bg1->",bg1); //再次从Pool里获取对象的时候,就报错了 var b...
来源: Laya_社区 发布时间: 20180823
...也不显示 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() 本地调试加载本地图片都报错 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪...
来源: Laya_社区 发布时间: 20180323
...载分包成功或失败? Laya.loader.loadPackage("sub1111").then(() => { console.log('pack sub1 loaded'); new Subpack1().init(); }, (err) => { console.log('pack sub1 error', err); });...
来源: Laya_社区 发布时间: 20250909
...待js自动垃圾回收机制回收。destroy后不能再使用。</p> * <p>destroy时会移除自身的事情监听,自身的timer监听,移除子对象及从父节点移除自己。</p> * @param destroyChild (可选)是否同时销毁...
来源: Laya_社区 发布时间: 20181121
...te _targetsLastValue: number = null; private targets: Array<Laya.Sprite> = null; public static instance: ColorTool = null; private targetsFilter: Laya.ColorFilter = null; private _persent: number = 0; protected constructor() { this.targets = new Array<Laya.Sprite>(); } /** * 实例 */ pu...
来源: Laya_社区 发布时间: 20180930
...编写一个类A继承自Laya.View 2.在设计模式下,选择,文件->项目设置->UICode导入类 3.填写`import View = A;` 4.设计模式导出一下UI,就可以看到所有的View都被替换成了自己的类A了。 PS:如果是Dialog也一样,写入`import Dialog = B`,B...
来源: Laya_社区 发布时间: 20161008