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

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

101. Laya打包微信小游戏的时候,引入的外部js访问不到 [ 86%]

...bin文件夹下的index.html文件增加了js引用,如下<!--导入math.js包--> <script type="text/javascript" src='math.min.js'></script> <!--导入自定义计算工具包--> <script type="text/javascript" src='math.self.js'></script> 打包之后,发生...

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

102. Sprite3D-Sprite3D变换 [ 85%]

... var scaleDelta = 0; var scaleValue = 0; function animate() { scaleValue = Math.sin(scaleDelta += 0.1); _position.y = scaleValue / 2; layaMonkey1.transform.position = _position; layaMonkey2.transform.rotate(_rotate, false, false); _scale.x = _scale.y = _scale.z = Math.abs(scaleValue); layaMonkey3.tr...

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

103. ScrollRect设置会引起其他的UI资源无法正在显示 [ 85%]

...ackage { import laya.display.Node; import laya.display.Sprite; import laya.maths.Rectangle; import laya.ui.Image; import laya.utils.Handler; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite =...

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

104. 为什么会出现报错 ani not found:ufo1_down [ 85%]

...始化子弹信息 bullet.init("bullet1",role.camp,1,-4-role.shootType - Math.floor(this.level / 15),1,1); // 设置角色类型为子弹类型 // bullet.isBullet = true; // 设置子弹发射初始化位置 bullet.pos(role.x + pos[index], role.y - role.hitRadius - 10 ); // 添加到舞台上 Laya.s...

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

105. Facebook Iphone 放大模式 ,标准模式适配 [ 85%]

...:Boolean = /iPhone/gi.test(Browser.window.navigator.userAgent) && (Math.min(Browser.clientHeight,Browser.clientWidth) == 375 && Math.max(Browser.clientHeight,Browser.clientWidth) == 812); var onIPhoneXR:Boolean = (Math.min(Browser.clientHeight,Browser.clientWidth) == 414 && M...

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

106. laya.d3.math.Viewport [ 85%]

... Index | Frames No Frames ViewportProperties | Methods Packagelaya.d3.mathClasspublic class ViewportInheritanceViewport Object Viewport 类用于创建视口。 Public Properties PropertyDefined By  height : Number高度Viewport  maxDepth : Number最大深度Viewport  minDepth : Number...

来源: Laya2.0_api 发布时间: 20190513

107. 引擎 TiledMap 居然不支持图块翻转 [ 85%]

...iledMap.ORIENTATION_STAGGERED:                         tileX = Math.floor(tileX);                         tileY = Math.floor(tileY);                         screenPos.x = tileX * this._map.tileWidth + (tileY & 1) * this._tileWidthHalf;                 ...

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

108. dialog设置缩放问题 [ 84%]

....scale(1, 1)改成dialog.scale(dialog.scaleH, dialog.scaleH); dialog.x = Math.round(((Laya.stage.width - dialog.width * dialog.scaleH) >> 1) + dialog.pivotX);  dialog.y = Math.round(((Laya.stage.height - dialog.height * dialog.scaleH) >> 1) + dialog.pivotY);   希望官方能优化...

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

109. 新手引导 挖洞 不用 cacheAs="bitmap" 希望能帮助那些和我一样有需求的码农!你好我好大家好才是真的好!请各位大佬批评指教! [ 84%]

...rWidth)             {                 phoneW = Math.round(browserWidth / pixelRatio);                 phoneH = Math.round(image.height * wPercentage);                 console.log(phoneW + " | " + phoneH);             }     ...

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

110. 为什么会出现报错 ani not found:ufo1_down [ 84%]

...始化子弹信息 bullet.init("bullet1",role.camp,1,-4-role.shootType - Math.floor(this.level / 15),1,1); // 设置角色类型为子弹类型 // bullet.isBullet = true; // 设置子弹发射初始化位置 bullet.pos(role.x + pos[index], role.y - role.hitRadius - 10 ); // 添加到舞台上 Laya.s...

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