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

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

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

...s.MapY - (Laya.stage.mouseY - this.mLastMouseY); Laya.stage.off(Laya.Event.MOUSE_MOVE, this, mouseMove); } function mouseDown(){ this.mLastMouseX = Laya.stage.mouseX; this.mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE,this,mouseMove); } /** * 改变视口大小 * 重设地图...

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

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

...s.MapY - (Laya.stage.mouseY - this.mLastMouseY); Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.mouseMove); } private mouseDown():void { this.mLastMouseX = Laya.stage.mouseX; this.mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); } /** * 改变视口大...

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

83. Sprite-遮罩-放大镜 [ 46%]

...p.pivot(50, 50); // 设置mask bg2.mask = maskSp; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, () => { bg2.x = -Laya.stage.mouseX * 2; bg2.y = -Laya.stage.mouseY * 2; maskSp.x = Laya.stage.mouseX; maskSp.y = Laya.stage.mouseY; }); } } new Sprite_MagnifyingGlass();module laya { import Sprite = Laya.Spr...

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

84. 3D中摄像机绕物体旋转该如何实现? [ 45%]

....on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browser.onMobile) { this.AroundByMobileInpu...

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

85. 官方案例里摄像机绕物体旋转脚本的问题 [ 45%]

....on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browser.onMobile) { this.AroundByMobileInpu...

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

86. destination-out 叠加模式问题 [ 44%]

...(range); //sp.scaleY=0.5; guideContainer.addChild(sp); Laya.stage.on(Event.MOUSE_MOVE,this,move); } private function move():void { sp.x=Laya.stage.mouseX; sp.y=Laya.stage.mouseY; sp.graphics.clear(); sp.graphics.drawCircle(0, 0, 200,"#0ef604"); } li970704928 • 2017-12-13 19:08 @Laya_Aaro...

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

87. CPU优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 43%]

...0, 0, 20, "#990000"); Laya.stage.addChild(sp);    Laya.stage.on(Event.MOUSE_MOVE, this, function() {     sp.pos(Laya.stage.mouseX, Laya.stage.mouseY); }); ``` ​ ![图片1.png](img/1.png) ​ (图1) ​ 此时FPS显示30,并且在鼠标移动时,可以感觉到圆球位置的更...

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

88. CPU优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 43%]

...drawCircle(0,0,20,"#990000"); Laya.stage.addChild(sp); Laya.stage.on(Event.MOUSE_MOVE,this,function() { sp.pos(Laya.stage.mouseX,Laya.stage.mouseY); }); ``` ![图片1.png](https://official.layabox.com/laya_data/Chinese/LayaAir_AS3/2D/advanced/PerformanceOptimization/CPU/img/1.png) (图1) 此时F...

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

89. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 41%]

...ircle(0,0,20,"#990000"); Laya.stage.addChild(sp); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,function() { sp.pos(Laya.stage.mouseX,Laya.stage.mouseY); }); ``` ![图片1.png](https://official.layabox.com/laya_data/Chinese/LayaAir_AS3/2D/advanced/PerformanceOptimization/CPU/img/1.png) (图1) 此时F...

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

90. laya.display.Sprite [ 37%]

...ve Event  Event Object Type: laya.events.EventEvent.type property = Event.MOUSE_MOVE鼠标在对象身上进行移动后调度 mouseout Event  Event Object Type: laya.events.EventEvent.type property = Event.MOUSE_OUT鼠标离开对象后调度。 mouseover Event  Event Object Type: laya.events.Ev...

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