大约有 772 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)
Laya_社区(428) Laya3.0_api(62) Laya2.0_api(58) Laya2.0_文档(57) laya_api(53) Laya_示例(49) Laya2.0_示例(48) Laya3.0_文档(17)
...的触摸点失效,单点的情况下会获得三个触摸点信息Laya.stage.on(Laya.Event.MOUSE_DOWN, this, (data: Laya.Event) => { let str = ""; if (data.touches) { for (let i = 0; i < data.touches.length; i++) { str += ` {${i} : ${data.touches[i].pos.toString()}}`; } } console.log("drag ...
来源: Laya_社区 发布时间: 20230823
关于多点触控e.touches问题 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, onCtrlMoveRockerTouchDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, onCtrlMoveRockerTouchDown); function onCtrlMoveRockerTouchDown(e) { console.log("onCtrlMoveRockerTouchDown()"); this.ctrlMoveRockerPosX...
来源: Laya_社区 发布时间: 20171204
...示对象 public function MouseOver_mouseOut() { Laya.init(600,400); Laya.stage.bgColor='#EEFFCC'; arr=; var sp1:Sprite=new Sprite(); sp1.autoSize=true; sp1.name='sp1'; sp1.graphics.drawRect(0,0,100,100,"#FF0000"); var sp2:Sprite=new Sprite(); sp2.autoSize=true; sp2.name='sp2'; sp2.graphics.drawRect...
来源: Laya_社区 发布时间: 20170502
... this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, onDeviceorientation); function onDeviceorientation(absolute, rotationInfo) { this.info.text = "alpha:" +...
来源: Laya2.0_文档 发布时间: 20210714
...ent.MOUSE_DOWN, this, function():void {console.log(1);}); btn.on换成Laya.stage.on是可以触发的,但是btn却触发不了。 麻烦解答,谢谢。 2017-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...
来源: Laya_社区 发布时间: 20170525
...ontroller(){ super(); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Scene3D.load("res/model/LayaScene_Car/Conventional/car.ls", Handler.create(null, function(scene:...
来源: Laya_社区 发布时间: 20190328
...Distance = Vector3.distance(this.transform.position, this.AroundPos); Laya.stage.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.mouse...
来源: Laya_社区 发布时间: 20170714
...03 17:08 用了 137*****130 • 2018-08-03 17:12 Laya.init(640,1136); Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; // Laya.stage.bgColor = null; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.Stat.show(); let canvas = Laya.Render.canvas; let co...
来源: Laya_社区 发布时间: 20180803
...Distance = Vector3.distance(this.transform.position, this.AroundPos); Laya.stage.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.mouse...
来源: Laya_社区 发布时间: 20190224
...怎么看都是webgl 3D怎么使用canvas渲染 Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.tr...
来源: Laya_社区 发布时间: 20180614