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

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

321. IphoneX适配 [ 54%]

...2 个回复 班长 赞同来自: 辉先生 if (Browser.onIPhone && Math.abs(Browser.pixelRatio - 3) < 0.01) { onIPhoneX = (Browser.clientWidth == 375 && Browser.clientHeight == 812) || (Browser.clientWidth == 812 && Browser.clientHeight == 375); } if (onIPhoneX) { //初始...

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

322. Laya.Sprite 和 laya.display.Sprite 是一样的吗? [ 54%]

....utils.Browser import TiledMap = laya.map.TiledMap import Rectangle = laya.maths.Rectangle import Stat = laya.utils.Stat import TextFiled = laya.display.Text import LocalStorage = laya.net.LocalStorage   2018-01-16 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问...

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

323. 能改变动画下getGraphicBounds 的属性吗 x y width height [ 54%]

...29 0 0 分享 微博 QZONE 微信 z298959 赞同来自: var res = new laya.maths.Rectangle(0,0,10,10) ani.setBounds(res)   并不能改变动画显示大小 2017-06-29 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 z298959 相关问题 ...

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

324. 所能支持的最多对象数量是多少? [ 54%]

...象数量是多少? throw Error("IBQuadrangle count:"+count+" must<:"+Math.floor(65535 / 4)); 做了一个网页版的地图编辑器,代替了tilemap ,但是遇到一个问题,地图打小限制了,Laya最大支持的对象数量有限制,多了会报错,就是个错,想问一下...

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

325. 对象池3D问题 [ 54%]

...Laya.Vector3(0, 0.5,0); // layaMonkey.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)) //漫反射贴图 var tietu=layaMonkey.getChildByName("denglongyu").getChildByName("denglongyu") var tietutu=tietu.skinnedMeshRender.sharedMaterial; tietutu.diffuseTexture = Laya.Texture2D.load("fish/denglongyu/...

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

326. webgl 模式下 用graphics.drawTexture 平铺图片 图片不显示是什么原因 [ 54%]

...a.loader.getRes('res/images/bg2.png'); var repeatX = 8 ; var repeatCount = Math.ceil(stageW / repeatX); for(let i = 0; i < repeatCount ; i++) { this.bg1.graphics.drawTexture(this.texture1,8*i,0); this.bg2.graphics.drawTexture(this.texture2,8*i,0); } canvas下可以显示 webgl模式 平铺 图片...

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

327. 【简单跑酷--JS版】---Lv.6 终篇 [ 54%]

...整个素材是 32 * 20 拼起来的 this.y = 32 * 6 + 32 * parseInt(8 * Math.random()); if(this.bg == null){ //贴图纹理 this.bgTexture = Laya.loader.getRes("res/floor.png"); this.bg = new laya.display.Sprite(); this.bg.graphics.clear(); this.addChild(this.bg); //因为上面的图片是截取...

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

328. 读取大块材质中的图片并图片切割 [ 54%]

...   for (var i:int = 5; i > 0; i-- ){     data["item" i] = {index:Math.floor(temp)};     temp = temp/10;    }    trace(this.score);    this.scorebox.dataSource = data;   } 2017-02-21 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 直接使用IDE下提供的Clip组件...

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

329. 无限循环滚动列表 [ 53%]

...       var obj = this._list.getChildAt(i);             var dist = Math.abs(midX - obj.x - obj.width / 2);             if (dist > obj.width)                 obj.setScale(1, 1);             else {                 var ss = 1 + (1 - dist / obj.width) * 0.24;    ...

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

330. position -position应该怎么写?? [ 53%]

...内容相关的链接 提交 3 个回复 183*****755 赞同来自: laya.d3.math.Vector3.subtract(a:Vector3, b:Vector3, o:Vector3) 2017-06-13 0 0 分享 微博 QZONE 微信 demibug 赞同来自: 非常麻烦,自己派生一个类吧,不然你写一个连续加连续减会麻烦的要死。 2017-0...

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