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

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

411. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 47%]

...; var cellZ = this.terrainSprite.depth / this.aStarMap.height; var gridX = Math.floor((x - minX) / cellX); var gridZ = Math.floor((z - minZ) / cellZ); var boundWidth = this.aStarMap.width - 1; var boundHeight = this.aStarMap.height - 1; (gridX > boundWidth) && (gridX = boundWidth); (gridZ...

来源: Laya3.0_文档 发布时间: 20230303

412. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 47%]

...调***/ private function onChange(value:Number):void { trace("进度:" + Math.floor(value * 100) + "%"); } } } ```

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

413. Laya ide 1.83 导出apk 加载场景失败 [ 47%]

...ead property 'width' of undefined 05-18 09:55:36.987: I/0(27649): minWidth=Math.min(minWidth,image.width); 05-18 09:55:36.987: I/0(27649):                                    ^ 05-18 09:55:36.987: I/0(27649): TypeError: Cannot read property 'width' of undefined 05-18 09:55:36.987: I...

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

414. 动画-图集动画 [ 47%]

...ge { import laya.display.Animation; import laya.display.Stage; import laya.maths.Rectangle; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Animation_Altas { private const AniConfPath:String = "../../res/fighter/fighter.json"; publi...

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

415. 动画-图集动画 [ 47%]

...ge { import laya.display.Animation; import laya.display.Stage; import laya.maths.Rectangle; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Animation_Altas { private const AniConfPath:String = "../../../../res/fighter/fighter.json";...

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

416. 发布微信小游戏,sprite的graphics.drawPoly安卓平台会引起花屏 [ 47%]

...nts.push(0, h); g.drawPoly(0, 0, points, "#FFFFFF"); this._fguiPro.value = Math.floor(this._index / w * 100); this._index += 8; //移动到这里 if (this._index >= 642) { this._index = 0; } ceshiDemo.zip 2022-11-17 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...

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

417. 2D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 47%]

...; for(var i=0;i<10000;i++) { this.text=new Laya.Text(); this.text.text=(Math.random()*100).toFixed(0); this.text.color="#CCCCCC"; this.text.x=Math.random()*550; this.text.y=Math.random()*400; textBox.addChild(this.text); } Laya.stage.addChild(textBox); } } 下面是笔者电脑上的运行时截...

来源: Laya3.0_文档 发布时间: 20251010

418. 物体随着鼠标滑动旋转脚本 [ 47%]

...unction () {     var yprElem = this.yawPitchRoll.elements;     if (Math.abs(yprElem[1]) < 1.50) {         Laya.Quaternion.createFromYawPitchRoll(yprElem[0], yprElem[1], yprElem[2], this.tempRotationZ);         this.Obj.transform.localRotation = this.tempRotationZ;     ...

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

419. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 46%]

...t laya.d3.component.Script3D; import laya.d3.core.Sprite3D; import laya.d3.math.Vector3; class MonkeyScript extends Script3D { private var rotation:Vector3 = new Vector3(0, 0.03, 0); override public function onAwake():void { trace("onAwake"); } override public function onStart():void { trace("onStar...

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

420. 【官网代码】加载dom音频报错,怎么回事? [ 46%]

...frequencyBinCount);analyser.getByteFrequencyData(dataArray);var step:int = Math.round(dataArray.length / 60);for (var i:int = 0; i < 40; i++) {var energy:int = (dataArray[step * i] / 256.0) * 50;for (var j:int = 0; j < energy; j++) {Laya.stage.graphics.drawLine(20 * i + 2, 200 + 4 * j,20 * (i ...

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