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

大约有 2,261 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0069 秒)

1021. laya.net.LocalStorage存储数据的一些参数问题 [ 68%]

...文档看是 "没有时间限制". 大小有什么限制吗?比如存了 x M你们会自动清除. 2 支持情况? 另外这个Support参数. 什么情况会发生失败? 用户安装拒绝本地存储权限? 还是某些平台不支持? 可否举几个可能发生失败的例子? 2017-01-19 添加...

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

1022. [闪退!!!][崩溃!!Crash]LayaNative 2.8.0 js 调用 oc 同步方法,有返回值的时候崩溃 [ 68%]

...ZONE 微信 nothing 赞同来自:   2020-12-10 19:03:43.642443+0800 layabox[1694:38272] xhr.get url=http://192.168.31.159:8900/bin/prefab/DropBox.json 2020-12-10 19:03:43.649089+0800 layabox[1694:38272] found the file in the package:b2c6176d   2020-12-10 19:03:47.362020+0800 layabox[1694:38272] --...

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

1023. 移动Sprite时,边缘闪烁 [ 68%]

...; lastTimestamp = new Date().getTime(); count++; totale += deltaTime; this.x += this.speed_x*deltaTime; this.y += this.speed_y*deltaTime; });用以上代码移动一个继承Sprite的对象,边缘出现闪烁;请大家帮忙看看,谢谢   var Tank = (function () { function tankSprite() { thi...

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

1024. 微信小游戏的分包加载,和Laya下添加module.def分包导出这两个方式是否不能直接对接? [ 68%]

...直接对接? 我尝试使用如下方式分包导出 https://ask.layabox.com/question/329   然后通过如下教程分包加载 https://developers.weixin.qq.com/minigame/dev/tutorial/base/subpackages.html   1. 发现加载其他js,有引用Laya的地方,都报Laya未定义, 2. 加载主...

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

1025. 被遮罩的显示对象的子显示对象再添加遮罩,则子显示对象显示不正确 [ 68%]

...0, 100, 300, "#ffffff"); this.img.mask = imgMask; Laya.Tween.to(this.img, {x:100}, 10000).update = Laya.Handler.create(this, this.updateMsk, null, false); } private updateMsk():void { this.img.mask.graphics.clear(true); this.img.mask.graphics.drawRect(100 - this.img.x, 0, this.img.width, 300, "#ffff...

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

1026. 克隆sprite [ 68%]

...么克隆一个对象啊?  在下面的“   tempSpr2.graphics.drawTexture(tempSpr.texture, 0, 0, tempSpr.width, tempSpr.height);”中 tempSpr.texture 是空的 if (data && data.items != []) {             let tempSpr: Sprite = new Sprite();             let tempImg: Laya.I...

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

1027. Laya拖尾无效 [ 68%]

...相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Laya_XS 赞同来自: 引擎中没有提供拖尾的效果代码吧,代码是你做的吧,是不是你的实现方式存在问题,你可以说下你的实现方式 2018-08-22 0 3 分享 微博 QZONE 微信 承 赞同来自: ...

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

1028. 分享问题解决,关键词:canvas不在左上角,鼠标点击位置偏移怎么办 [ 68%]

...Elem = document.documentElement var win = document.defaultView var clientBox = Browser._container.getBoundingClientRect() this._point.setTo((e.pageX || e.clientX)-clientBox.x - win.pageXOffset - docElem.clientLeft,(e.pageY || e.clientY)-clientBox.y - win.pageYOffset - docElem.clientTop); // this._po...

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

1029. list 数据不会及时渲染 [ 68%]

list 数据不会及时渲染    refreshCard(0,[xxxxxx]);  public function refreshCard(index:int,cardArr:Array):void{             var cardList:List = _homeSeceneView["myCard_"+index];             if(cardList){                 if(!cardList.visible){          ...

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

1030. LayaAir写了一个页面,怎么在Android studio 中引入 [ 68%]

...的一个页面引入,能打包之后放到android studio里面访问index.html不?     mPlugin.game_plugin_set_option("gameUrl", "http://192.168.x.x:8900/bin/index.html");    这种方式能够访问到index.html,有没有直接把layaAir打包直接放在android Studio 里面,然后直...

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