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

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

851. laya.ui.FrameClip [ 53%]

...l Classes | Index | Frames No Frames FrameClipProperties | Methods | Events Packagelaya.uiClasspublic class FrameClipInheritanceFrameClip FrameAnimation AnimationPlayerBase Sprite Node EventDispatcher Object 关键帧动画播放类 Public Properties Hide Inherited Public Properties Show Inhe...

来源: laya_api 发布时间: 20170422

852. 区块地图-PerspectiveWall [ 53%]

...WALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Laya.Event.CLICK, this, this.onStageClick); } createMap() { const TiledMap = Laya.TiledMap, Rectangle = Laya.Rectangle; this.tiledMap = new TiledMap(); this.tiledMap.createMap("res/tiledMap/perspective_walls.json", new Rectangle(0...

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

853. 关闭指定定时器timer [ 53%]

...器还在继续调用回调,并没有报错。this.StartToRound.on(Laya.Event.CLICK,null,function(){ Laya.timer.loop(10,this,round);//10ms 一秒100次 }); //转动逻辑 function round(){ tlate.rotation+=roundTurnChange(1); console.log(tlate.rotation); } //转动变量变化 function roundTurnCha...

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

854. 为什么rotation、scale赋值了不管用? [ 53%]

...load("3d/ben/Export.lh"); scene.addChild(this.role3D); this.role3D.on(Laya.Event.HIERARCHY_LOADED,this,function(){ this.role3D.transform.scale = new Laya.Vector3(0.7,0.7,0.7); this.role3D.transform.position = new Laya.Vector3(0,1.2,0); }   2018-03-09 0 0 分享 微博 QZONE 微信 qian 赞同来自...

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

855. SoundManager的兼容性问题 [ 53%]

... at e.playSound\n    at e.onRandBtnDown\n    at e.runWith\n    at i.event \n    at t.e.sendEvents \n    at t.e.onMouseDown   我们游戏的线上前端日志发现了很多类似上述的错误日志,使用Laya自带的SoundManager音乐播放器有浏览器的兼容性问题,出现这...

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

856. Sprite设置mask属性为什么显示是透明的?怎样才能显示正常? [ 53%]

...awRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); mask.on(Laya.Event.CLICK,this,chick);   function chick(){ mask.destroy(); gameContainer.destroy(); }   gameContainer.mask=mask; Laya.stage.addChild(gameContainer);  })();  })(); 附件 : --> 2020-06-03 添加评论 免费帖 --> 分...

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

857. laya.ui.Clip_API3.0 [ 53%]

...象的属性 y 的值,用于控制 clip 对象的显示位置。 clip.on(Event.CLICK, this, onClick);//给 clip 添加点击事件函数侦听。 Laya.stage.addChild(clip);//将此 clip 对象添加到显示列表。 } private function onClick():void { trace("clip 的点击事件侦听处理函数...

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

858. laya.d3.core.TransformUV [ 53%]

...ds Packagelaya.d3.coreClasspublic class TransformUVInheritanceTransformUV EventDispatcher ObjectImplements laya.d3.core.IClone TransformUV 类用于实现UV变换。 Public Properties PropertyDefined By  matrix : Matrix4x4[read-only] 取变换矩阵。 TransformUV  offset : Vector2 取偏移...

来源: laya_api 发布时间: 20170929

859. 节点销毁问题 [ 53%]

...实是在UI界面里定义的setbtn,赋给setbtn全局的, setbtn.on(Event.MOUSE_UP,this,this.onSet);  这个做了事件监听。。现在我想移除当前界面,那么这个全局变量是否会自动消除监听并且销毁呢?不仅仅是移除舞台,是整个销毁掉。。我现在...

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

860. 微信小游戏分包实战(TypeScript-小游戏适配文档-微信小游戏) [ 53%]

...钮btnA的点击事件,触发后处理 this.GameMain.newUI.btnA.on(Laya.Event.CLICK, this, this.showB); } //显示B页 private showB():void { this.GameMain.showUI(this.ui.bUI,this.GameMain.newUI) //监听按钮btnB的点击事件,触发后处理 this.GameMain.newUI.btnB.on(Laya.Event.CLICK, this...

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