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

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

701. Laya.Video内存泄漏问题 [ 80%]

...eate(this, createVideo)); var v; function createVideo() { var video_file = new Blob([Laya.loader.getRes(video_url)], {type: 'video/webm'}); var blob_url = URL.createObjectURL(video_file); var video = new Laya.Video(); video.loop = true; video.load(blob_url); Laya.stage.addChild(video); video.play();...

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

702. TiledMap 45度地图块渲染顺序问题 [ 80%]

...赞同来自: 可以了   this.tiledMap.createMap("res/tiled/green.json", new Rectangle(0, 0, 1120, 860), new Handler(this, this.completeHandler),null,new Point(1120,860)); 最后那个参数new Point(1120,860),其实是地图的分块渲染的大小,默认是450,450,所以把我的地图分...

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

703. image._nativeObj报错 [ 80%]

...码,就只有Graphics的构造函数里面会有这个 _this_._nativeObj=new (window as Object)._conchGraphics(); 貌似没有new成功,麻烦帮忙看看什么情况会导致new失败呢   LayaAir版本:1.7.14beta LayaNative版本:0.9.13 附件 : --> 2018-01-31 添加评论 免费帖 --> ...

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

704. 关于新手引导 [ 80%]

...uTu() { super(); //绘制一个蓝色方块,不被抠图 gameContainer = new Sprite(); gameContainer.loadImage("crazy_snowball.png", 0, 0, 600, 400); addChild(gameContainer); // 引导所在容器 guideContainer = new Sprite(); // 设置容器为画布缓存 guideContainer.cacheAs = "bitmap"; addC...

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

705. Sprite optimizeScrollRect = true 似乎有问题 [ 80%]

...crollRect = true 似乎有问题 this.initMask = function () { this.mask = new Sprite(); this.mask.width = this.width; this.mask.height = this.height; this.mask.scrollRect = new Rectangle(); this.mask.scrollRect.setTo(0, 0, this.width, this.height); this.mask.optimizeScrollRect = true; this.addChild...

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

706. 多线程worker(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 80%]

...件,放到index.html中。代码如下: ```typescript var myWorker = new Worker("my_task.js"); myWorker.onmessage = function (oEvent) { console.log("Called back by the worker!\n"); }; myWorker.postMessage("start"); // start the worker. ``` 新建一个my_task.js文件,代码如下: ```typesc...

来源: Laya2.0_文档 发布时间: 20210715

707. Laya.GlowFilter is not a constructor [ 80%]

Laya.GlowFilter is not a constructor new Laya.GlowFilter("#f00",8,8,8); javascript设置外发光,提示这个错误 2018-12-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: macro 编...

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

708. 骨骼动画-多纹理 [ 80%]

...= Laya.Event; const mAniPath = "res/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(mAniPath); } onError() { trace("error"); } parseComplete() { // 创建模式为1,使用动...

来源: Laya2.0_示例 发布时间: 20260303

709. list中加的button不能接收点击事件 求一个list中加button的demo [ 80%]

...< items.UserWareList.length;i++){             var itemList = new BagItem(items.icon,items.name,items.count);             itemList.pos(70,posY);             data.push(itemList);             posY = posY + 200;         }         let list = ne...

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

710. laya.tween.to for循环问题 [ 80%]

laya.tween.to for循环问题 自己手动new没问题,但是for循环new就是有问题 附件 : --> demo.zip 2017-11-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 gls_laybox 赞同来自: 可以把我的...

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