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

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

1421. TiledMap中的gridWidth|(块的宽度)是哪一部分啊? [ 70%]

...eWidth和tileHeight获取单块地图的大小private function createMap():void { tiledMap = new TiledMap(); tiledMap.createMap("res/tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height),Handler.create(this,onComplete)); } private function onComplete():vo...

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

1422. 一个按钮按下弹起怎么加缓动效果 [ 70%]

一个按钮按下弹起怎么加缓动效果 private function pm_down():void { var scaleValue:Number = 0.9; mainPage.pm_main.scale(scaleValue, scaleValue); } private function pm_up():void { var scaleValue:Number =1; mainPage.pm_main.scale(scaleValue, scaleValue); } 2017-03-18 添加评论 免费...

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

1423. laya.d3.physics.shape.BoxColliderShape [ 70%]

...e  clone():*[override] 克隆。 BoxColliderShape cloneTo(destObject:*):void 克隆。 ColliderShape updateLocalTransformations():void 更新本地偏移,如果修改LocalOffset或LocalRotation需要调用。 ColliderShapeProperty DetailsizeXpropertysizeX:Number  [read-only] 获取X轴尺寸...

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

1424. laya.d3.core.particleshuriken.module.RotationOverLifetime_API3.0 [ 70%]

...41 克隆。 Returns any 克隆副本。 cloneTo cloneTo(destObject: any): void Defined in laya/d3/core/particleShuriKen/module/RotationOverLifetime.ts:31 克隆。 Parameters destObject: any 克隆源。 Returns void Globals "laya/d3/core/particleShuriKen/module/RotationOverLifetime" RotationOverLi...

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

1425. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 70%]

...大 class CAffiche { private textfiled:Laya.HTMLDivElement; public Reset():void { gRoomView.chatBox.innerHTML = ""; gRoomView.chatBox.height = 1; } public SysSay(txt:string):void { this.AddChat(0, "法官", txt); } public PlayerSay(msg:any):void { this.AddChat(msg['from_client_seatsno'], msg['from_c...

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

1426. Laya 中用什么事件可以检测声音是否播放结束? [ 70%]

...回复 cuixueying 赞同来自: private function onPlayMusic(e:Event=null):void { trace("播放音乐"); SoundManager.playMusic("res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } private function onPlaySound(e:Event=null):void { trace("播放音效"); SoundManager.playSound("res/sounds/btn.m...

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

1427. 安卓和iPhone的触控差异 [ 70%]

...USE_DOWN, this, onMouseDown); private function onMouseDown(e:Event = null):void { var touches:Array = e.touches; if (touches) { moveX = touches[0].stageX stage.on(Event.MOUSE_MOVE, this, onMouseMove) } } private function onMouseMove(e:Event= null):void { var touches:Array = e.touches; if (touches) {...

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

1428. laya.d3.component.animator.AnimatorPlayState_API3.0 [ 70%]

...ate(): AnimatorState | null set currentState(value: AnimatorState | null): void Defined in laya/d3/component/Animator/AnimatorPlayState.ts:33 当前动画State Returns AnimatorState | null Defined in laya/d3/component/Animator/AnimatorPlayState.ts:36 当前动画State Parameters value: AnimatorState...

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

1429. Timer.clear清理同caller同method的多个loop [ 70%]

...是旧的那个loop清理不掉。   下面是大概的代码:main(): void{ Laya.timer.loop(1000, this, this.loopFunc, [1], false); Laya.timer.loop(500, this, this.loopFunc, [2], false); ... ... Laya.timer.clear(this, loopFunc); Laya.timer.clear(this, loopFunc); } loopFunc(data: any):void{} 2020-...

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

1430. 对象mask的区域改变问题! [ 70%]

对象mask的区域改变问题! private addedToStage():void{ this.__mask = new Laya.Sprite(); this.__mask.graphics.drawRect(0,0,this.img_bar.width,this.img_bar.height,"#000000"); this.setValue(0); } private setValue(v:number):void{ this.__mask.scaleX = v; this.img_bar.mask = null;//第二次设...

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