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

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

21. 陀螺仪与加速计(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 73%]

...ight);  Laya.stage.addChild(this.info);  Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, onDeviceorientation); function onDeviceorientation(absolute, rotationInfo) { this.info.text = "alpha:" + Math.floor(rotationInfo.alpha) + '\n' + "beta :" + Math.floor(rotationInfo.beta) + '\n' + "gamma:" ...

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

22. 最新版本 1.7.5 beta fontClip [ 73%]

...                 }             }             event(Event.CHANGE);         } 2017-06-01 0 0 分享 微博 QZONE 微信 a13121527420 - 哇啦哇啦哇啦! 赞同来自: 其实最完美的就是可以布局,然后还可以在前后加描述问题, 例如: 123...

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

23. 陀螺仪与加速计(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 72%]

...a.stage.height);  Laya.stage.addChild(info);     Gyroscope.instance.on(Event.CHANGE, this, onDeviceorientation); }   private function onDeviceorientation(absolute:Boolean, rotationInfo:RotationInfo):void  {  info.text =   "alpha:" + Math.floor(rotationInfo.alpha) + '\n' +  "beta...

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

24. 陀螺仪与加速计 · LayaAir3.0文档 · LAYABOX [ 72%]

...e.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private onDeviceorientation(absolute: Boolean, rotationInfo: Laya.RotationInfo): void { this.info.text = "alpha:" + Math.floor(rotationInfo.alpha) + '\n' + "beta :" + Math.floo...

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

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

...e.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private  onDeviceorientation(absolute: Boolean, rotationInfo: Laya.RotationInfo): void { this.info.text = "alpha:" + Math.floor(rotationInfo.alpha) + '\n' + "beta :" + Math.f...

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

26. 输入设备-指南针 [ 71%]

...er = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var Event = Laya.Event; var compassImgPath = "../../res/inputDevice/kd.png"; var compassImg; var degreesText; var directionIndicator; var firstTime = true; (function() { Laya.init(700, 1024, WebGL); Laya.stage.scaleMode = Stage.S...

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

27. list的selectHandler属性连续点击同一个item不能重复接收事件 [ 71%]

...         this.changeSelectStatus();             this.event(/*laya.events.Event.CHANGE*/"change");             this.selectHandler && this.selectHandler.runWith(value);             this.startIndex=this._startIndex;         //}     }); 20...

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

28. 输入设备-指南针 [ 70%]

...ler.create(this, this.init)); } init() { const Gyroscope = Laya.Gyroscope, Event = Laya.Event; // 创建罗盘 this.createCompass(); // 创建方位指示器 this.createDirectionIndicator(); // // 画出其他UI this.drawUI(); // // 创建显示角度的文本 this.createDegreesText(); Gyroscope.ins...

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

29. UI加载完成后无法获取控件的大小——超详细版问题 [ 70%]

...onstructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.mypan.vScrollBar.on(Laya.Event.CHANGE, this, this.fitDOMElements_scroll); } private fitDOMElements(a, b, c, d, e, f): void { console.log("----------the event resize-------") cons...

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

30. 输入设备-贪吃蛇(重力感应) [ 70%]

... Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Event = Laya.Event, Accelerator = Laya.Accelerator; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; La...

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