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

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

791. 分享一个自己做的游戏公告功能,跑马灯效果 [ 71%]

...5,150) this._createHorn() this._createBg() this._createView() this.on(Laya.Event.UNDISPLAY,this,this.stop) this.on(Laya.Event.DISPLAY,this,this.play) } /** 创建滚动区域 */ _createView() { this.hornBox = new Box() let _rectangle = new Laya.Rectangle(0,0,this.defaultX,55) this.hornBox.scrollRect...

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

792. laya.display.Sprite_API3.0 [ 71%]

...一个 Sprite 实例。 package { import laya.display.Sprite; import laya.events.Event; public class Sprite_Example { private var sprite:Sprite; private var shape:Sprite public function Sprite_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef"...

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

793. spine 回调函数的参数没有效果 [ 71%]

... 没有改变都是0,spine 输出文件见附件   sk_timelimit.on(Laya.Event.LABEL,this,this.animLabel); private animLabel(data:any) { }   var str = "readyGO1"; sk_view.sk_timelimit.play(str,false); 附件 : --> 归档.zip 2018-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

794. 射线检测-放置物体 [ 71%]

... _offset = new Laya.Vector3(0, 0.25, 0); //鼠标事件 Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { if (_outHitInfo.distance !== -1) { var sphere = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh(0.25, 16, 16))); var mat = new Laya.StandardMaterial(); mat.diffuseTexture = Laya.Te...

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

795. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 71%]

... SpineTempletBinary(); this.templet.loadAni(this.aniPath); this.templet.on(Event.COMPLETE, this, this.parseComplete); this.templet.on(Event.ERROR, this, this.onError) } private parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos...

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

796. laya.d3.core.light.SpotLight [ 71%]

...l Classes | Index | Frames No Frames SpotLightProperties | Methods | Events Packagelaya.d3.core.lightClasspublic class SpotLightInheritanceSpotLight LightSprite Sprite3D Node EventDispatcher Object SpotLight 类用于创建聚光。 Public Properties Hide Inherited Public Properties Show Inhe...

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

797. layaair2d的sprite的鼠标右键事件无效 [ 71%]

layaair2d的sprite的鼠标右键事件无效 self.getSprite().on(Event.MOUSE_DOWN, self, function (e) { console.log(e)鼠标左键点击有效果,但是右键无效果 附件 : --> 2022-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

798. 没有预加载的图片怎么获取width和height ? [ 71%]

...eying • 2017-01-18 12:21 再图片加载完成后,可以先侦听一个Event.LOADED事件,再回调里去获取getBounds值 qq502416708 • 2017-01-18 15:32 能写几句示例吗?图片是网络传过来的用户头像 cuixueying • 2017-01-19 15:38 就是获取你图片所在容器的getBo...

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

799. 鼠标事件监听 异常触发mouseout [ 71%]

...seDown、mouseOut 就能复现 Enheng • 2022-05-05 17:24 this.sp.on(Laya.Event.MOUSE_DOWN, this, this.text) this.sp.on(Laya.Event.MOUSE_OUT, this,this.text) Enheng • 2022-05-05 17:26 按道理来说,我未移出只做点击动作,应该只执行一遍text(),但是它执行了两遍 Laya_...

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

800. UI 控件多次调用 RESIZE 回调问题 [ 71%]

...var a = new Laya.Box(); a.left = a.top = a.right = a.bottom = 0; a.on(Laya.Event.RESIZE, this, () => { console.warn(" resize ===== "); }) Laya.stage.addChild(a); Laya.timer.loop(1000, this, () => { a.addChild(new Laya.Box()); }); --------------- 测试代码如上,每1s会回调一次控件 ...

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