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

大约有 5,194 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0101 秒)

371. 【分享】通过命令行调用compile.js编译,不使用laya-cmd [ 78%]

...match(/^\s*Error\:/)){app.exit(1);return;}>>compile_temp.js echo let isTasksComplete = str.match(/^laya\.ide\.complete$/m)>>compile_temp.js echo if (isTasksComplete){>>compile_temp.js echo app.exit(0)}>>compile_temp.js echo })>>compile_temp.js echo fork1.stderr.on("data...

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

372. 【laya2.0】请问drawToCanvas方法改了吗? [ 78%]

【laya2.0】请问drawToCanvas方法改了吗? var htmlCanvas=this.p6_work.drawToCanvas(575,1023,0,0); var canvas=htmlCanvas.getCanvas(); var base64=canvas.toDataURL("image/png"); 报错:Uncaught TypeError: Failed to execute 'bindTexture' on 'WebGLRenderingContext': parameter 2 is not of type ...

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

373. Uncaught RangeError:Array buffer allocation failed [ 78%]

...看看,这样可以私信发demo     The maximum heap size you can try is 2048MB - 16MB = 2032MB. Browsers currently don't support allocating anything larger than that. If you are running on a 32-bit browser, a HEAP size of 512MB or 768MB is about the maximum that is possible.   参照一下ue4...

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

374. 安卓微端弹出 LayaH5Market.js 的报错,应该怎么处理? [ 77%]

...带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined 2.2.0beta4 发布微信小游戏,安卓设备加载场景黑屏 laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined ide 2.4 layaair2-cmd 编译报错 微信小...

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

375. TypeError: Cannot read property 'length' of null [ 77%]

...制体hero.prefab 在a场景通过Laya.Pool.getItemByCreateFun("hero", this.pHero.create, this.pHero)创建对象,同时给对象设置位置,成功 跳转到b场景后,通过Laya.Pool.getItemByCreateFun("hero", this.pHero.create, this.pHero)获取这个对象时,获取成功,设置对象位置...

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

376. 微信加载proto文件 [ 77%]

微信加载proto文件 在Laya里用this.protobuf.load 可以正常加载,但是导出成微信小游戏就无法加载了。报错无效的URL,求解 2018-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回...

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

377. Laya.timer.loop() 报错 Cannot read property 'loop' of null [ 77%]

...roperty 'loop' of null import { Image } from "laya/ui/Image"; // import { List } from "laya/ui/List"; import { Laya } from "laya"; export default class test_move extends Image{ // /** @prop {name:move_img, tips:"用来移动的箭头", type:Image} */ // public _move_img: Image; // public _list: List...

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

378. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 77%]

...49 这是官方提供的代码 微信主域代码: Laya.timer.once(400,this,function():void{ var rankTexture:Texture = new Texture(Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 rankSprite2.graphics.drawTexture(rankTexture,5,78,ran...

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

379. LayaAirIDE构建的iOS包加入网易七鱼后崩溃,报错信息curl_easy_perform failed, code=35 [ 77%]

...带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 用了Byt...

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

380. 子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null” [ 77%]

...y 'getWorldTransform' of null” 发射时生成子弹: onFire() { if (this.isFire) { Laya.Mesh.load("fly2/fly3-bullet.lm", Laya.Handler.create(this, function (m) { let bullet = new Laya.MeshSprite3D(m); this.Sn.addChild(bullet); bullet.addComponent(BulletScript); var bulletCollider = bullet.addCo...

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