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

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

141. 模型与动画的导入使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

....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_文档 发布时间: 20251010

142. Shader预编译(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 45%]

...边缘光照(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

143. 用LayaAir引擎解析Tiled Map地图(JavaScript-2D进阶篇(JS)-扩展模块) [ 44%]

... 0; Laya.stage.on(Laya.Event.RESIZE,this,resize); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP,this,mouseUp); resize(); } /** * 移动地图视口 */ function mouseMove(){ var moveX = this.MapX - (Laya.stage.mouseX - this.mLastMouseX); var moveY = this.MapY ...

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

144. 【简单跑酷--JS版】---Lv.6 终篇 [ 44%]

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

145. 用LayaAir引擎解析Tiled Map地图(TypeScript-2D进阶篇(TS)-扩展模块) [ 44%]

...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 mouseMove():void{ var moveX:number = this.MapX - (Laya.stage.mouseX - this.mLastM...

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

146. 加载的时候动画会卡 [ 44%]

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

147. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 44%]

...his.player); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop = function(){ // 检测人物是否踩在地板上面了 for(var i = this.mapFloor.numChildr...

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

148. Shader预编译(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 44%]

...边缘光照(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

149. LAYABOX游戏实时语音之APP版本 [ 43%]

....on(Laya.Event.CLICK, this, this.JoinRoom); this.RecordAudio.on(Laya.Event.MOUSE_DOWN, this, this.StartRecordAudio); this.RecordAudio.on(Laya.Event.MOUSE_UP, this, this.StopRecordAudio) } Loginyim() { YIMMain.callWithBack(function (n) { alert(n); }, "login",randomString(6)); } JoinRoom() { YIMMain.c...

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

150. laya.ui.Button [ 41%]

...onMouse(e:Event):void 对象的 Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWNEvent.MOUSE_UP、Event.CLICK 事件侦听处理函数。 Button preinitialize():void 预初始化。 Component resetLayoutX():void 重置对象的 X 轴(水平方向)布局。 Component resetLayoutY():void...

来源: laya_api 发布时间: 20170929