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

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

611. [LayaAir2]华为mate60系列手机在微信浏览器打开Laya2.x版本游戏会闪屏 [ 77%]

...内容相关的链接 提交 8 个回复 1703743940用户 赞同来自: S_eVent 这个问题我这边也出现了,在mate x5上120HZ高刷屏下,但是华为的老机型上都运行正常。两个解决方案,第一种是让用户把屏幕调到60HZ刷新,第二种是判断机型,然后在...

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

612. LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 [ 77%]

...示ExpandPage界面)package game { import laya.display.Sprite; import laya.events.Event; public class Btn { private var _owner:Sprite; private var _isScal:Boolean; public function Btn() { trace("btn的附加类已经开始执行"); } //设置owner函数,可以直接获取到Button组件的实例 p...

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

613. [0]Spine3.8.75报错:Error: Unsupported skeleton data, please export with a newer version of Spine. [ 76%]

...rowser = Laya.Browser; var WebGL = Laya.WebGL; var Stage = Laya.Stage; var Event = Laya.Event; var Stat = Laya.Stat; var SpineTemplet = Laya.SpineTemplet; class SpineBinary {     constructor() {         this.aniPath = "res/powerup-pro.skel";         this.index = -1;         // Laya.ini...

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

614. Chrome和layaAir调试,大部分点击事件没有反应了 [ 76%]

...是引擎的bug。 Chrome控制台有警告,描述:Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 但是好像之前也有,所以...

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

615. Native IOS下获取陀螺仪数据为0 [ 76%]

...意坐标系。 //设置陀螺仪的处理 Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onOrientationChange);   private onOrientationChange(absolute:Boolean, info: Laya.RotationInfo):void         {             if (info.alpha === null)             {     ...

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

616. 怎么让laya h5自动适应等比缩放? [ 76%]

...获取舞台的宽高: stage.scaleMode=StageScaleMode.NO_SCALE; stage.addEventListener(Event.RESIZE,stageResize); private function stageResize(event:Event):void { trace(stage.stageWidth) trace(stage.stageHeight) } 转换成h5后获取浏览器的宽高://[IF-JS]var fullScreenWidth = Laya.window....

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

617. laya.ui.Clip [ 76%]

...| All Classes | Index | Frames No Frames ClipProperties | Methods | Events Packagelaya.uiClasspublic class ClipInheritanceClip Component Sprite Node EventDispatcher ObjectSubclasses FontClip Clip 类是位图切片动画。 Clip 可将一张图片,按横向分割数量 clipX 、竖向分...

来源: laya_api 发布时间: 20170929

618. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 76%]

... addInputChild callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeC...

来源: Laya3.0_api 发布时间: 20231102

619. 怎么获取完全限定类名,就像as的getQualifiedClassName [ 76%]

...只限基于ActionScript的项目,基于ts的嗝屁  const a = new Laya.Event() Laya.__classmap['laya.events.Event'] == a.constructor //true   2017-08-10 0 0 分享 微博 QZONE 微信 宇智波 旋 赞同来自: /**返回指定对象的完全限定名 */ static getQualifiedClassName(value):stri...

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

620. 微信小游戏发布问题 [ 76%]

...resources\app\node_modules\layacmd\layacmd-publish.js:141:21) at emitNone (events.js:86:13) at LayaProjectCompiler.emit (events.js:185:7) at LayaProjectCompiler.compile (E:\Laya\LayaAirIDE_beta\resources\app\node_modules\layacmd\compile_project.js:38:9) at ChildProcess.compileProject (E:\Laya\LayaAi...

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