大约有 147 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0047 秒)
...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
...边缘光照(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
...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
... = 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
...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
...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
...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