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

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

321. laya.display.Sprite [ 85%]

...All Classes | Index | Frames No Frames SpriteProperties | Methods | Events Packagelaya.displayClasspublic class SpriteInheritanceSprite Node EventDispatcher ObjectImplements laya.display.ILayoutSubclasses AnimationPlayerBase, Component, DialogManager, GridSprite, MapLayer, MovieClip, Particle...

来源: laya_api 发布时间: 20170929

322. laya.ani.bone.Skeleton [ 85%]

...ll Classes | Index | Frames No Frames SkeletonProperties | Methods | Events Packagelaya.ani.boneClasspublic class SkeletonInheritanceSkeleton Sprite Node EventDispatcher Object 骨骼动画由Templet,AnimationPlayer,Skeleton三部分组成。 Public Properties Hide Inherited Public Proper...

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

323. 如何与服务端建立连接 [ 85%]

...t + ":" + port; let socket:Laya.Socket = new Laya.Socket(); socket.on(Laya.Event.OPEN,this,()=>{ console.log("connect success!"); }) socket.connectByUrl(url);点此查看Socket官方示例 2018-05-15 1 0 分享 微博 QZONE 微信 rabbit 赞同来自: 只要前端的,还是要前端和后端代...

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

324. 怎么实现同一个工程内分包? [ 85%]

...lash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; import login.LoginView; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { remov...

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

325. laya.ani.AnimationTemplet_API3.0 [ 85%]

...ference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getAniDuration getAnimation getAnimationCount getAnimationDataWithCache getNodeCount getNodeIndexWithName getNodeKeyFrame getNodes getNodesCurrentFrameIndex getOriginalData getOriginalDataUnfixedRate getPublicExtData ge...

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

326. 输入设备-摇一摇 [ 85%]

...nction startShake() { Shake.instance.start(5, 500); Shake.instance.on(Laya.Event.CHANGE, this, onShake); console.text = '开始接收设备摇动\n'; } function onShake() { shakeCount++; console.text += "设备摇晃了" + shakeCount + "次\n"; if (shakeCount >= 3) { Shake.instance.stop(); console.t...

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

327. 模拟鼠标事件 [ 85%]

...: 手动调一下对应的事件即可。例如: package { import laya.events.Event; public class Main { public function Main() { //初始化引擎 Laya.init(600,400); //手动调stage的click事件 this.onClick(); //给stage监听点击事件 Laya.stage.on(Event.CLICK,this,onClick); } private fun...

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

328. webGL模式下 graphic画线涂鸦,一直不停画会出现线条异常 [ 85%]

...ya.Point=new Laya.Point(); pos1:Laya.Point=new Laya.Point(); __mouseDown(e:Event){ this.pos0.x=this.bmp.mouseX; this.pos0.y=this.bmp.mouseY; this.pos1.x=this.bmp.mouseX this.pos1.y=this.bmp.mouseY; this.bmp.on(Laya.Event.MOUSE_MOVE, this, this.__mouseMove); this.bmp.on(Laya.Event.MOUSE_UP, this, thi...

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

329. 分享:避免鼠标快速移动,mouseout和mouseover触发顺序不一致的问题! [ 85%]

...序不一致的问题! package { import laya.display.Sprite; import laya.events.Event; import laya.utils.Mouse; /* 2或多个显示对象 鼠标移到显示对象上,呈现手型光标,移出呈现箭头,当鼠标快速在2个显示对象之间切换,会出现鼠标位于显示对象之上...

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

330. 摇杆的多点触摸问题 [ 85%]

...杆的多点触摸问题 Touch对象并没有Id属性。 这样的话,当Event.MOUSE_DOWN事件响应得到一个触摸点后 如何在Event.MOUSE_MOVE和Event.MOUSE_UP事件中区分是先前那个触摸点,这点如果不能区分的话,就分不清楚是摇杆的触摸点还是其他按钮...

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