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

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

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

...化蛇 initSnake(); // 监视加速器状态 Accelerator.instance.on(Laya.Event.CHANGE, this, monitorAccelerator); // 游戏循环 Laya.timer.frameLoop(1, this, animate); // 食物生产 Laya.timer.loop(3000, this, produceFood); // 游戏开始时有一个食物 produceFood(); })() function initSnak...

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

602. 灯光-聚光 [ 77%]

...res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 115, 150); }); var _quaternion = new Laya.Quaterni...

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

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

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

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

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

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

606. [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

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

608. 怎么让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

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

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