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

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

1011. 解决跨域相关! [ 66%]

...加启动参数可以解决跨域问题。 在chrome浏览器快捷方式->右击打开属性->快捷方式一栏->目标末尾添加 --allow-file-access-from-files 打开快捷方式,将转换后自动生成的html文件拖拽至chrome浏览器即可正常显示。   2015-10-28 3 9 分...

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

1012. 打包后报错 Unexpected token in JSON at position 266 [ 66%]

...nexpected token in JSON at position 266     at JSON.parse (<anonymous>)     at Function.MiniAdpter.getJson (http://127.0.0.1:31158/game/code.js:21236:15)     at Function.MiniLoader.onReadNativeCallBack (http://127.0.0.1:31158/game/code.js:22404:25)     at Handler.__proto.runWith (http:...

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

1013. 怎么才能像HTML5中那样直接操作Canvas [ 66%]

... transform-origin: 0px 0px 0px; transform: matrix(1, 0, 0, 1, 0, 0);"></canvas> var canvas:any = document.getElementById("layaCanvas"); var ctx = canvas.getContext("2d"); ctx.fillStyle = "red"; ctx.fillRect(120, 10, 150, 150); console.log("draw comple...

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

1014. 在一个矩形之上画另一个矩形,只显示一个矩形 [ 66%]

.../串盒子 this.chuanBox = new Laya.Rectangle(Laya.stage.width - boxWidth >> 1, Laya.stage.height - boxHeight - 10, boxWidth, boxHeight); //画出盒子 Laya.stage.graphics.drawRect( this.chuanBox.x, this.chuanBox.y, this.chuanBox.width, this.chuanBox.height, "#FFFFEE", "#FFFFFF", 2); this.sag...

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

1015. LayaIDE2.2导出图集提示错误,Export Atlas Fail [ 66%]

...自: 可能总得资源太大了,导致Out Of Memory了,通过菜单=>帮助=>开发人员工具可以看到具体的报错信息。 2020-06-19 0 0 分享 微博 QZONE 微信 隔壁老王 赞同来自: 请问题主,问题解决了没有,遇到了同样的问题 2020-07-09 0 1 分享 ...

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

1016. Laya导入到微信开发者工具Cannot assign to read only property 'window' of object '#<Window&gt;' [ 66%]

...工具Cannot assign to read only property 'window' of object '#&lt;Window&gt;' Cannot assign to read only property 'window' of object '#&lt;Window&gt;'这个问题到底怎么解决?有官方的回复了么? 我这里将ES6转ES5取消后,真机调试又不行“缺少文件,ERR :file game...

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

1017. 场景打开完成事件,无法调用场景内的子物体 [ 66%]

...,无法调用场景内的子物体 1. 打开场景(带onComplete事件)-&gt; onOpened()中添加子对象(View-View节点下有个Box) 2.onOpened函数周期结束,也收到了场景complete的回调-&gt;这个时候需去调用View下面的Box。 Box为undefined。 3. View.onEnable()中 Box存...

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

1018. 2D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...文档LayaAir3-IDE可视化2D物理编辑详解 Author : Charley Version &gt;= LayaAir 3.2 一、新手必读 1.1 前言 本篇涉及2D物理IDE可视化编辑的全部内容,也就是说,不需要写一行代码,就可以通过可视化操作完成了物理的配置与效果实现。 如果...

来源: Laya3.0_文档 发布时间: 20251010

1019. 在加载swf动画之后在封装的里面报错了 , 用的官网的例子 [ 66%]

...*/     __proto.getInt16=function(){         if (this._pos_+2 &gt; this._length)throw "getInt16 error - Out of bounds";         var us=this._d_.getInt16(this._pos_,this._xd_);         this._pos_+=2;         return us;     } 只在那个 If  那一行报错了 ...

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

1020. 使用外部引擎播放layaair制作的.ani [ 66%]

...d(tl); //播放Animation动画 tl.play(); tl.on(Event.COMPLETE, this, () =&gt; {console.log('end')}); } 2018-08-23 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zyx 相关问题 看了其他引擎才发现 LAYA 真的太太太太好用...

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