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

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

921. SoundManager第一次加载播放延迟怎么解决? [ 61%]

...r第一次加载播放延迟怎么解决? private function onPlayMusic(e:Event=null):void  {    trace("播放音乐");    SoundManager.playMusic("../../../../res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } 以上是官方的例子,但是背景音乐文件比较大的时候,会...

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

922. 多个模块之间相互嵌套import,导致运行报错 [ 61%]

...ager身兼多职引起的,在Animals中不要引用Manager。应该引入event机制,当Anaimal的attack动作发生时,触发'attack' 事件,而在Manager里监听attack事件,调用自已的change函数。 Animal.tsclass Animal implements EventEmiter { public sex: number = 0; public Creat...

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

923. LayaNative appLoader.js中偶发_targets为undefined的问题 [ 61%]

...么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 S_eVent 相关问题 发起问题须知,必看!!!不按提问规则的,官方拒绝解答!!! laya针对页游耗用内存大的问题是如何解决的? unity导出粒子文件问题 LayaAir3D UnityPlugin 使...

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

924. 事件绑定不触发bug [ 61%]

事件绑定不触发bug         var Event   = Laya.Event;         var Sprite  = Laya.Sprite;         var Stage   = Laya.Stage;         var Texture = Laya.Texture;         var Browser = Laya.Browser;         var Handler = Laya.Handler;         var WebGL   = L...

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

925. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 61%]

...ildAt addChildren addComponent addComponentInstance addLine addLines bubbleEvent callLater clear clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents getLine hasHideFlag hasListener isAncestorOf off offAll offA...

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

926. 为什么会出现报错 ani not found:ufo1_down [ 61%]

...dChild(this.hero); // 监听舞台的鼠标移动事件 Laya.stage.on(Laya.Event.MOUSE_MOVE,this,onMouseMove); // 手动创建敌人 // createEnemy(10); // 定时器自动循环创建敌人 Laya.timer.frameLoop(1,this,onLoop); } function onLoop() { // 遍历所有飞机,更改飞机状态 for(var ...

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

927. LayaBox如何多点触摸? [ 61%]

...ldAt(sp, 0); Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT; sp.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin); } protected function onTouchBegin(event:TouchEvent):void { log(event.touchPointID.toString()); } cuixueying • 2016-01-23 11:17 你的demo在原生浏览器下是可以正...

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

928. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 61%]

...gory=3d&group=Resource&name=GarbageCollection)) ```typescript function(e:Event) { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_s...

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

929. 刚刚接触2天layaair,有几个问题请教。 [ 61%]

...名btn1,但不知道怎么调用,强行在Main.js里面写入 btn1.on(Event.CLICK, this, onBtnClick); function onBtnClick() { alert('222'); } btn1 is not defined 按教程写脚本,实在找不到地方写,请问有没有类似教程呢。 问题3)我在Scenes 新建了2个view,一个是...

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

930. 执行回调函数时报is not a function [ 60%]

...?什么情况? 资源加载后的 回调 layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 问题状态 最新活动: 2017-06-23 11:57 浏览: 1683 关注: 2 人 wwxinqq • 2017-06-22 18:16 我重新编辑了问题。在开始我加了问题重现的说明...

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