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

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

411. 动画-图集动画 [ 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_示例 发布时间: 20251209

412. 发布微信小游戏,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

413. 2D性能优化 · LayaAir3.3 · 引擎文档 · 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

414. 物体随着鼠标滑动旋转脚本 [ 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

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

416. 【官网代码】加载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

417. socket大型项目回调 [ 46%]

... : 1)); if (id) { // 7.x do { var tmp:number = id % 128; var next:number = Math.floor(id / 128); if (next != 0) { tmp = tmp + 128; } buffer.writeByte(tmp); id = next; } while (id != 0); // 5.x // var len:Array = []; // len.push(id & 0x7f); // id >>= 7; // while(id > 0) // { // len.push(...

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

418. dcc和cdn的问题 [ 46%]

...需要更新了,会自动给文件加版本号:res.cdn.xxx/res/a.png?v=Math.random 这种方式么,这种好像只能破坏本地缓存,无法破坏节点缓存吧? 麻烦给个详细解释,感谢!

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

419. 进度条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...: number): void { // 控制台打印输出进度 console.log("进度:" + Math.floor(value * 100) + "%"); } } 示例效果如下: (动图2-1) ProgressBar的其他属性也可以通过代码来设置,上述示例演示了如何通过代码创建ProgressBar,有兴趣的开发者可以自己...

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

420. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 46%]

...Laya.Quaternion(0, 0, 0, 0); Laya.Quaternion.createFromYawPitchRoll(0, 0* (Math.PI / 180), 0, newRot); this.pivot.transform.rotation = newRot; .............................................. if (e.keyCode == 97) { // console.log("a"); let newPos = new Laya.Vector3(this.block.transform.position.x + 0....

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