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

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

81. DrawPie例子中无法显示遮罩区域 [ 54%]

....pivot(80,80); //Laya.stage.addChild(this.cMask); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, onMouseMove); ape.mask = this.cMask; } function onMouseMove(){ this.cMask.pos(Laya.stage.mouseX, Laya.stage.mouseY); }; })(); 2018-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

82. UI-RefreshList [ 53%]

...tage.mouseY)); //鼠标按下的时候进行移动侦听 e.target.on(Event.MOUSE_MOVE, this, this.onItemBoxMouseMove, [e.target, index]); } } if (e.type == Event.MOUSE_UP) { this.mouseDown = false; this.itemOnMouseUp(); } //点击标记文本 if (e.target.name == "flag" && e.type == Event.CLICK) thi...

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

83. 基础文本 · LayaAir3.0文档 · LAYABOX [ 52%]

...prevX = this.txt.mouseX; prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.finishScrollText); } /* 停止滚动文本 */ finishScrollText() { Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.off...

来源: Laya3.0_文档 发布时间: 20241014

84. 用LayaAir引擎解析Tiled Map地图(ActionScript-2D进阶篇(AS3)-扩展模块) [ 50%]

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

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

85. TiledMap地图 · LayaAir3.0文档 · LAYABOX [ 50%]

...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); } /** * 改变视口大...

来源: Laya3.0_文档 发布时间: 20230303

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

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

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

88. 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_示例 发布时间: 20241117

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

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

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