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

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

321. 对象池的使用 [ 55%]

...var nan:Image = Pool.getItemByClass("nam", Image); nan.skin = url; nan.x = Math.random() * 600 + 80; nan.y =-60; this.addChild(nan); } private function delRen():void { if(arr.length){ for (var i:uint = 0; i < arr.length; i++ ){ if (arr[i].y > 800){ Pool.recover("nan", Image); } }arr[i].visible...

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

322. 灯光-点光 [ 55%]

....d3.core.light.PointLight; import laya.d3.core.scene.Scene; import laya.d3.math.Quaternion; import laya.d3.math.Vector3; import laya.d3.resource.models.Mesh; import laya.d3.resource.models.SphereMesh; import laya.display.Stage; import laya.events.Event; import laya.utils.Stat; import common.CameraMo...

来源: Laya_示例 发布时间: 20251209

323. 移动端h5项目如何获取多点触摸的坐标 [ 55%]

... = e.touches;   if (touches && touches.length == 2) { preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX);   Laya.stage.on(Event.MOUSE_MOVE, this, this.onMouseMove); } } 2019-09-25 0 0 分享 微博 QZONE 微信 17 赞同来自: 同上,...

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

324. 动画-旧版骨骼动画 [ 54%]

...core.light.DirectionLight; import laya.d3.core.scene.Scene; import laya.d3.math.Quaternion; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.ui.Button; import laya.utils.Browser; import lay...

来源: Laya_示例 发布时间: 20251209

325. new vector2报错 [ 54%]

...来自: 我知道了  我创建的是2D的项目  Vector2 是在laya.d3.math 里面。猜想可能是这个问题导致 2018-08-23 0 1 分享 微博 QZONE 微信 恋上桃子的狸 赞同来自: 你好是什么问题导致的? 2018-09-05 0 0 分享 微博 QZONE 微信 Supermang42 赞同来自: ...

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

326. 图片显示异常 [ 54%]

...listData) { var data: any[] = []; listData.sort(function () { return 0.5 - Math.random(); });  listData.map((item, index) => { var hotShow: boolean = false; var newShow: boolean = false;  if (index >= 3 && index < 8) { hotShow = true; }  if (index >= 11 && index < 1...

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

327. 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

328. 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

329. 能改变动画下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

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

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

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