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

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

131. 2.x引擎项目升级说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...3D正确遮挡。3.3 新增 MOUSE_DRAG和MOUSE_DRAG_END3.4 删除了RIGHT_MOUSE_DOWN和RIGHT_MOUSE_UP3.5 事件汇总4、LayaAir3.0 组件系统修改5、Runtime的使用差异6、2D动画2.0引擎开发者使用3.0的差异汇总 Author:谷主 && Charley [!Note] 本篇文档仅适用3.0...

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

132. videoNode在安卓上不能播放 [ 47%]

...分代码:     onAwake(): void {         Laya.stage.on(Laya.Event.MOUSE_DOWN, () => {             Laya.loader.load("resources/916.mp4").then(() => {                 this.play();             });         })     }同时建议您将“项目设置->缩放模式...

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

133. 关于laya生成的canvas定位问题导致内部事件不正确 [ 47%]

...oadImage('images/item_5.png'); Laya.stage.addChild(img); img.on(Laya.Event.MOUSE_DOWN, img, onStartDrag); function onStartDrag(){ console.log(this); clickIndex++; msgDiv.html('图片选中了' + clickIndex + '次'); // img.startDrag(); } // Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; // Laya.stage....

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

134. Cannot read property 'rayCast' of undefined [ 47%]

...", Laya.Handler.create(this, this.onLoadFinish)); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); } onLoadFinish(layaMonkey){ this.layaMonkey=this.scene.addChild(layaMonkey); // Laya.timer.frameLoop(1, this, this.onFrameLoop); } onFrameLoop(){ this.layaMonkey.transform.rotate(this.rotati...

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

135. 射线检测报错,outHitInfo.sprite3D=null; [ 46%]

...this.phasorSprite3D = new Laya.PhasorSpriter3D(); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDown); }  private onMouseDown():void{ this.camera.viewportPointToRay(new Laya.Vector2(Laya.MouseManager.instance.mouseX,Laya.MouseManager.instance.mouseY),this.ray); Laya.Physics.rayCast(this.ray,...

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

136. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 46%]

... = templet.buildArmature(1); skeleton.pos(400,600); skeleton.on(Laya.Event.MOUSE_DOWN, this, dragFunc); Laya.stage.addChild(skeleton); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectang...

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

137. Shader预编译(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 46%]

...边缘光照(Shader_GlowingEdge)示例 ```typescript Laya.stage.on(Event.MOUSE_DOWN,this,function(){ let arr; for(let i = 0;i 生成的相关数据 ```typescript { "GlowingEdgeMaterial":[ { "defineNames":["DIRECTIONLIGHT"], "passIndex":0, "subShaderIndex":0 }, { "defineNames":["DIRECTIONLIGHT","BONE...

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

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

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

139. TiledMap地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

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

140. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

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