大约有 1,442 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0063 秒)
Laya_社区(922) Laya2.0_文档(177) Laya_示例(132) Laya2.0_示例(115) Laya3.0_api(61) Laya3.0_文档(33) laya_api(1) Laya2.0_api(1)
...ar Laya3D = global.Laya3D; var Laya = global.Laya; Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); Laya.Scene3D.load('/1/res/SampleScene.ls', Laya.Handler.create(null, function(scene1){ let scene = Laya.stage.addChild...
来源: Laya_社区 发布时间: 20200611
... 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, this.onDeviceorientation); } private onDeviceorientation(absolute: Boolean, rotationInfo: Laya.RotationInf...
来源: Laya2.0_文档 发布时间: 20210715
...,逻辑和fixedwidth一模一样,你直接换成fixedwidth就行 Laya.stage.screenMode = "none"; Laya.stage.alignV = "middle"; Laya.stage.alignH = "center"; if (Laya.Browser.onPC) { Laya.stage.scaleMode = "showall"; } else { Laya.stage.scaleMode = "custom"; }这一步能让引擎自动适配宽...
来源: Laya_社区 发布时间: 20180404
...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
改变Laya.stage.scaleMode的问题 LayaAir IDE:1.7.17beta. 作业系统:Mac10.12.6. 浏览器:Google Chrome. 我会使用下列方式监听视窗改变的事件。Laya.stage.on(Laya.Event.RESIZE,this,this.doResize.bind(this)); 并且会在该事件(doResize)中改变 Laya.stage.scaleMod...
来源: Laya_社区 发布时间: 20180321
射线检测有偏差 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; 设置了这种scaleMode之后,计算射线就会出现偏差 按照官方例子设置Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;就不会有偏差 2018-05-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20180530
...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
...s Laya.Script3D{ constructor() { super(); //创建场景 this.scene = Laya.stage.addChild(new Laya.Scene3D()); //添加相机 this.camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); this.camera.transform.translate(new Laya.Vector3(0, 0.7, 5)); this.camera.transform.rotate(new Laya.Vector3...
来源: Laya_社区 发布时间: 20200801
... Laya3D.init(0, 0); //设置画布模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.tmpVector = new Laya.Vector3(0, 0, 0); this.scene = Laya.stage.ad...
来源: Laya_社区 发布时间: 20191009
..."res/swf/sheep3.swf"; Laya.init(1136, 640); // Laya.stage.alignV = Stage.ALIGN_MIDDLE; // Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; //设置水平对齐 ...
来源: Laya_社区 发布时间: 20170804