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

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

141. 关于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

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

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

143. rigidBody.applyForce 物体不会移动 [ 46%]

...e.width / 5) * 2; Laya.stage.addChild(this.text); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); let building: Laya.Sprite3D = scene.getChildByName( "Buliding" ) as Laya.Sprite3D; let moveArea: Laya.MeshSprite3D = building.getChildByName( "fence15" ) as Laya.MeshSprite3D; console.log(...

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

144. 龙骨动画-拖拽-点击区域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

145. 使用3D摄像机 · LayaAir3.0文档 · LAYABOX [ 41%]

...onStart()方法中,加入鼠标按下监听 //Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); //鼠标点下事件,处理发射射线,检测碰撞物体 onMouseDown(e: Laya.Event) { let point = new Laya.Vector2(); point.x = Laya.stage.mouseX; point.y = Laya.stage.mouseY; //产生...

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

146. laya.display.Sprite [ 34%]

...wn Event  Event Object Type: laya.events.EventEvent.type property = Event.MOUSE_DOWN在显示对象上按下后调度。 mousemove Event  Event Object Type: laya.events.EventEvent.type property = Event.MOUSE_MOVE鼠标在对象身上进行移动后调度 mouseout Event  Event Object Type: laya.ev...

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

147. laya.display.Sprite [ 34%]

...wn Event  Event Object Type: laya.events.EventEvent.type property = Event.MOUSE_DOWN在显示对象上按下后调度。 mousemove Event  Event Object Type: laya.events.EventEvent.type property = Event.MOUSE_MOVE鼠标在对象身上进行移动后调度 mouseout Event  Event Object Type: laya.ev...

来源: laya_api 发布时间: 20170929