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

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

251. 碰撞检测关闭问题 [ 68%]

...击事件的传递。   例如(我用的javascript): button.on(Laya.Event.MOUSE_DOWN, null, (e)=>{ // 做一些事   // 终止事件传递 e.stopPropagation() })) 2018-05-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添...

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

252. unity 新建场景,预览报错。 [ 68%]

...0) UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout) (at D:/unity/Modules/UIElements/IMGUIContainer.cs:266) UnityEngine.Experimental.UIElements.IMGUIContainer.Handl...

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

253. 这样的panel请问如何实现比较好? [ 68%]

...按钮,会显示下一层界面,同时隐藏自己 this.btnFirst.on(Laya.Event.CLICK, this, this.change, [0]); //点击上面一层的按钮,会隐藏该层,同时显示上一层 this.btnChange.on(Laya.Event.CLICK, this, this.change, [1]); //初始时默认上面一层不可见 this.layoutSeco...

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

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

255. 使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image[ 68%]

...ap; import flash.display.Loader; import flash.display.Sprite; import flash.events.Event; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; import flash.utils.ByteArray; public class UrlImage extends Sprite { private var urlLoader:URLLoader; private var l:...

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

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

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

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

257. 怎么播放声音? [ 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

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

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

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

259. 创建树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

260. 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_示例 发布时间: 20240930