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

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

261. MovieClip加载错误抛什么事件? [ 68%]

...ge { import laya.ani.swf.MovieClip; import laya.display.Stage; import laya.events.Event; import laya.webgl.WebGL; public class MouseCount { public function MouseCount() { Laya.init(720, 1280, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode...

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

262. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...毕,此方法只执行一次 */ onAwake(): void { this.sprite2.on(Laya.Event.MOUSE_DOWN, this, this.test2);//设置监听,sprite1或sprite2均可 console.log(this.sprite1.mouseEnabled);//打印父节点sprite1的MouseEnabled的值:true console.log(this.sprite2.mouseEnabled);//打印子节点sp...

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

263. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 68%]

...?在事件中用什么方法指向image本身。as3中是侦听器接受event事件,然后用event.targe指向。layaair折腾半天,搞不明白image组件,sprite.loadImage,Laya.loader.load如果用for循环操作,响应事件中用什么方法指向事件的发起对象?原来用e.ta...

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

264. 怎么播放声音? [ 68%]

...写了:   var bg_sound:Laya.Sound =new Laya.Sound(); bg_sound.on(Laya.Event.COMPLETE,this,this.loadcom_f); bg_sound.on(Laya.Event.PROGRESS,this,this.loadcom_f); bg_sound.on(Laya.Event.ERROR,this,this.loadcom_f); bg_sound.load("res/bg.mp3"); private loadcom_f(e:Laya.Event):void{ console.log("-----...

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

265. Animation 播放完成回调有参数吗 [ 68%]

Animation 播放完成回调有参数吗 Animation.on(Event.COMPLETE, this, bfwc); function bfwc(e){         console.log(e.target.name); }    是错误的 2017-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

266. 2D物理-复合碰撞器 [ 68%]

...LE_FIXED_AUTO; Laya.Laya.stage.bgColor = "#232628"; this.createBox(); this.eventListener(); } createBox() { const width = 300, height = 20; const posx = Laya.Browser.width / 2, posy = Laya.Browser.height / 2; let box = this.box = new Laya.Sprite(); box.size(width + height * 2, width + height * 2); b...

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

267. LayaFlash针对资源的加载是同步还是异步? [ 68%]

...fash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; import flash.net.URLRequest; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { ...

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

268. 创建树Tree 该怎么回调mouseHandler 形参该传什么 [ 68%]

...his,onTreeHandler); function onTreeHandler(e,index) {    if(e.type==Laya.Event.CLICK)   {   } } 2017-06-26 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 z298959 相关问题 骨骼动画播放完后的回调时间 ios原生回调问...

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

269. a、b 两个按钮响应同一个点击回调,但event的 target和currentTarget相同都是stage对象,怎么解释呀 [ 67%]

a、b 两个按钮响应同一个点击回调,但event的 target和currentTarget相同都是stage对象,怎么解释呀 实际代码中,两个按钮通过currenttarget,确实能够区分开来,但是打印的值,currenttarget和target值都是stage对象,这个问题谁能给解释下...

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

270. unity资源导出的bug [ 67%]

...2) UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:266) UnityEngine.Experimental.UIElements.IMG...

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