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

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

231. 陀螺仪与加速计 · LayaAir3.4 · 引擎文档 · LAYABOX [ 60%]

...Gravity: Laya.AccelerationInfo, rotationRate: Laya.RotationInfo, interval: number): void { this.info.text = 'acceleration:(' + acceleration.x.toFixed(3) + ', ' + acceleration.y.toFixed(3) + ', ' + acceleration.z.toFixed(3) + ')\n' + 'accelerationIncludingGravity:(' + accelerationIncludingGravity.x.t...

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

232. UI-RefreshList [ 60%]

...用于处理单元格上的点击事件等 */ onListMouse(e: Event, index: number): void { console.log(e.target.name); if (e.type == Event.MOUSE_DOWN) { this.mouseDown = true; //如果单元格已经展开,则先恢复 if (this.itemIsOpen) { this.itemIsOpen = false; this.itemOpenId = -1; Tween.to(...

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

233. 陀螺仪与加速计(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 60%]

...Gravity: Laya.AccelerationInfo, rotationRate: Laya.RotationInfo, interval: number): void { this.info.text = 'acceleration:(' + acceleration.x.toFixed(3) + ', ' + acceleration.y.toFixed(3) + ', ' + acceleration.z.toFixed(3) + ')\n' + 'accelerationIncludingGravity:(' + accelerationIncludingGravity.x.t...

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

234. 关于新版的引擎示例中的一点疑问? [ 59%]

...链接 提交 1 个回复   赞同来自: leonszheng 接收值类型为number  设置的是材质的曝光强度 2018-09-19 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 leonszheng 相关问题 看了其他...

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

235. 微信小游戏编译出错 [ 59%]

微信小游戏编译出错 gameThirdScriptError Unexpected number in JSON at position 1;at api readFile success callback function SyntaxError: Unexpected number in JSON at position 2018-06-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

236. 在一个页面多放几个iframe,里面使用引擎,一般3-4个就报错了 [ 59%]

...报错了 Uncaught DOMException: Failed to construct 'AudioContext': The number of hardware contexts provided (6) is greater than or equal to the maximum bound (6). at Function.<anonymous> (<anonymous>:10787:310) at Function.get (<anonymous>:168:66) at Function.WebAudioSound.initWe...

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

237. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 59%]

...     //设置模糊的参数          var downSampleFactor:number = 2;          var downSampleWidth:number = viewPort.width/downSampleFactor;          var downSampleheigh:number = viewPort.height/downSampleFactor;         var texSize:Laya.Vector4 =...

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

238. 性能测试-卡通人物 [ 59%]

...} private createCharacters(): void { this.characterGroup = []; for (var i: number = 0; i = 0; --i) { this.animateCharactor(this.characterGroup[i]); } } private animateCharactor(charactor: Sprite): void { charactor.x += this.moveSpeed; charactor.rotation += this.rotateSpeed; if (charactor.x > Laya.st...

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

239. 列表组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 59%]

...为列表定义一个回调函数,例如: function renderListItem(index:number, obj:GButton) { obj.title = "" + index; } 如果使用了对象池,意回调函数可能为同一个对象重复调用,所以在回调函数里注册事件侦听需要非常小心,避免使用临时函数,造成...

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

240. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 59%]

... private showDragRegion(): void { //拖动限制区域 var dragWidthLimit: number = 350; var dragHeightLimit: number = 200; this.dragRegion = new Rectangle(Laya.stage.width - dragWidthLimit >> 1, Laya.stage.height - dragHeightLimit >> 1, dragWidthLimit, dragHeightLimit); //画出拖动...

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