大约有 191 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0052 秒)
Laya_社区(128) Laya2.0_文档(21) Laya2.0_示例(11) Laya3.0_文档(9) Laya_示例(9) Laya2.0_api(6) laya_api(6) Laya3.0_api(1)
....getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Event.MOUSE_DOWN, this, this.switchAni ); } switchAni(): void { if (this._isRun) { //播放对应的动画 this._animator.play("idle"); } else { this._animator.play("run"); } this._isRun = !this._isRun; } } 二、刚体动画 1,g...
来源: Laya3.0_文档 发布时间: 20230303
...边缘光照(Shader_GlowingEdge)示例 ```typescript Laya.stage.on(Event.MOUSE_DOWN,this,function():void{ let arr; for(let i = 0;i 生成的相关数据 ```typescript { "GlowingEdgeMaterial":[ { "defineNames":["DIRECTIONLIGHT"], "passIndex":0, "subShaderIndex":0 }, { "defineNames":["DIRECTIONLIGHT",...
来源: Laya2.0_文档 发布时间: 20210714
...d.__super.call(this); this.dh(); this.btn.on(Event.MOUSE_DOWN,game,this.toquanjing); Laya.propertyIsEnumerable = true; } Laya.class(Lload,"Lload",ui.loadUI); Lload.prototype.dh = function(){ this.ani1.play(0,true); Tween.t...
来源: Laya_社区 发布时间: 20160815
...边缘光照(Shader_GlowingEdge)示例 ```typescript Laya.stage.on(Event.MOUSE_DOWN,this,function():void{ var arr:Array; for(var i:int = 0;i 生成的相关数据 ```typescript { "GlowingEdgeMaterial":[ { "defineNames":["DIRECTIONLIGHT"], "passIndex":0, "subShaderIndex":0 }, { "defineNames":["DIRECT...
来源: Laya2.0_文档 发布时间: 20210715
...his.player); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(laya.events.Event.MOUSE_UP, this, this.onMouseUp); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop = function(){ // 检测人...
来源: Laya_社区 发布时间: 20160803
...derColor = "#fa1515"; this.txt.overflow = "scroll"; this.txt.on(Laya.Event.MOUSE_DOWN, this, this.startScrollText); } /* 开始滚动文本 */ startScrollText() { prevX = this.txt.mouseX; prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(Laya.Event.M...
来源: Laya3.0_文档 发布时间: 20241014
...ent.RESIZE,this,on_stage_resize); Laya.stage.on(Event.MOUSE_DOWN,this,on_map_mousedown); Laya.timer.frameLoop(1,this,calcMoving); } private function on_stage_resize():void { if (this.m_IsMoving) ...
来源: Laya_社区 发布时间: 20170921
...onMouse(e:Event):void 对象的 Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UP、Event.CLICK 事件侦听处理函数。 Button preinitialize():void[override] 预初始化。 CheckBoxEvents Hide Inherited Events Show Inherited Events Event Summary Defined By added添加...
来源: Laya2.0_api 发布时间: 20190513
...le = 3; Laya.stage.on(Event.RESIZE,this, this.resize); Laya.stage.on(Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Event.MOUSE_UP, this, this.mouseUp); resize(); } /** * 移动地图视口 */ private function mouseMove():void { var moveX:Number = MapX - (Laya.stage.mouseX - mLastMouseX); va...
来源: Laya2.0_文档 发布时间: 20210714
...aya.stage.on(Laya.Event.RESIZE,this,this.resize); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); this.resize(); } //地图加载完成的回调 private completeHandler(e: any = null): void { this.onLoaded(); } /** * 移动地图视...
来源: Laya3.0_文档 发布时间: 20230303