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

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

781. 抛click点击事件报错 [ 71%]

...能抛自定义事件  比如let xx:Laya.Sprite = new Laya.Sprite(); xx.event(Laya.Event.Click);  然后会报错    因为要实现新手引导5秒自动点击功能 所以会抛出一个事件  这个貌似是基本功能 求解答 2018-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

782. 射线检测-放置物体 [ 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_示例 发布时间: 20251209

783. 画了一个封闭的曲线,获取鼠标点击处的像素,为何坐标对不上导致拿不到正确位置的Texture? [ 71%]

...ckage { import laya.display.Sprite; import laya.display.Stage; import laya.events.Event; import laya.resource.HTMLCanvas; import laya.resource.Texture; import rain.core.StageReferance; public class Main { private var _view:Sprite; public function Main() { Config.isAntialias = true;//抗锯齿 //初...

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

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

785. laya.ui.Image [ 71%]

... All Classes | Index | Frames No Frames ImageProperties | Methods | Events Packagelaya.uiClasspublic class ImageInheritanceImage Component Sprite Node EventDispatcher Object Image 类是用于表示位图图像或绘制图形的显示对象。 Image和Clip组件是唯一支持异步加载的...

来源: laya_api 发布时间: 20170929

786. ts项目关闭多点触控 [ 71%]

...-06-14 0 1 分享 微博 QZONE 微信 lrzt 赞同来自: 我设置了 laya.events.MouseManager.multiTouchEnabled = false;没有用啊,还是能多点触控,还需要怎么做? 2018-11-30 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...

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

787. 分享一个自己做的游戏公告功能,跑马灯效果 [ 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

788. hitTestPrior无效 [ 71%]

...效 我想利用hitTestPrior进行鼠标事件监测: viewStack.on(Laya.Event.MOUSE_DOWN, this, this.onStageMouseDown); img.on(Laya.Event.MOUSE_DOWN, this, this.onImageMouseDown); viewStack.addChild(img);   然而不管设置是true还是false,都是子元素先检测到mousedown事件,请问...

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

789. 相对布局,重新适应问题 [ 71%]

... = 0,right=0,bottom=0) 变化,必须手动监听Laya.stage.on(Laya.Event.RESIZE,,)来二次适配吗 // this.imgBG.left = 0 ; // this.imgBG.right = 0 ; // this.imgBG.top = 0 ; // this.imgBG.bottom = 0 ;   还有一个就是 layoutEnabled 属性 在什么情况用!   2017-09-18 添...

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

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