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

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

541. 请问如何给所有按钮点击事件增加一个音效 [ 53%]

...} 2017-10-20 1 0 分享 微博 QZONE 微信 l329303161 赞同来自: Laya.stage.on('click', this, ()=>{     Laya.SoundManager.playSound("../bin/wav/click_button.mp3"); }) 找到解决方法了 2017-09-26 0 1 分享 微博 QZONE 微信 cuixueying 赞同来自: 可以给你的按钮声明name,...

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

542. 使用ScrollRect捲動物理世界,貼圖錯位問題 [ 53%]

...移,會出現殘影,顯示仍然有問題 若不用容器,直接對 stage做scrollRect顯示就會正常,但無法放置UI,一直對UI做座標修正也蠻奇怪的,希望有解法 附件 : --> 2018-12-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

543. laya.spine.SpineSkeleton_API3.0 [ 53%]

...entTime customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize externalSkins filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D loop mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY playState rotation scaleX scal...

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

544. 关于UI与3D场景的问题 [ 53%]

...,在按钮上面可以增加了一个Click事件,同时,我再Laya.stage 的舞台上面也有一个Click事件 我主要目的是想点击场景地面,角色移动,这个已经可以了。 我加一个按钮,想释放一个特效,结果我发现,每次点击都会触发人物的移...

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

545. laya.display.EffectAnimation_API3.0 [ 53%]

...s count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize effectClass effectData filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea index interval is3D isPlaying mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY p...

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

546. 安卓App 切换后台 声音还在播放的问题解决了么 [ 53%]

... 2020-01-14 11:25 浏览: 1959 关注: 4 人 松 • 2018-07-28 16:21 Laya.stage.on(Event.VISIBILITY_CHANGE,this,pause); 这个消息没触发,拿不到进入后台状态 所以声音没法关 Laya_Aaron • 2018-07-28 16:28 这个不是引擎能解决的问题 松 • 2018-07-28 16:31 @Laya_Aaron...

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

547. laya.display.Input [ 53%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以...

来源: Laya2.0_api 发布时间: 20190513

548. laya.display.Animation_API3.0 [ 53%]

...() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 init();//初始化 } private function init():void { var animation:Animation = new Animation();//创建一个 Animation 类的实例对象 animation 。 animation.load...

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

549. 为什么使用 HTMLDivElement 有%号,文字太长的时候%号会换到第二行? [ 53%]

...的时候%号会换到第二行? var text = new HTMLDivElement(); Laya.stage.addChild(text); text.color = "#fff"; text.style.fontSize = 24; text.innerHTML = "子弹命中率:<span style='color: #ee452c'>25</span>\/50 50%";     用的是最新版本 2017-03-26 添加评论 免费...

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

550. 加载SK文件时,报错如下:Uncaught getUint16 error - Out of bounds [ 53%]

....COMPLETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init)); 2018-03-...

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