大约有 5 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
...3`个物理像素。 LayaAir引擎里可以通过`Laya.Browser.clientWidth`获取逻辑分辨率的宽,通过`Laya.Browser.clientHeight`获取逻辑分辨率的高。 在手机等移动设备的竖屏状态下,窄面为宽,长面为高。如果发生了屏幕翻转的横屏状态,则长的...
来源: Laya2.0_文档 发布时间: 20210715
... Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint); this.getGridIndex(this.path[this.nextPathIndex % this.pointCount...
来源: Laya2.0_文档 发布时间: 20210714
... Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint); this.getGridIndex(this.path[this.nextPathIndex % this.pointCount...
来源: Laya2.0_文档 发布时间: 20210715
...抬起 Laya.stage.on(Event.MOUSE_UP, this, function():void { index = 0; //获取每次生成路径 getGridIndex(path[curPathIndex % pointCount].x, path[curPathIndex++ % pointCount].z, startPoint); getGridIndex(path[nextPathIndex % pointCount].x,path[nextPathIndex++ % pointCount].z, endPoint); //开...
来源: Laya2.0_文档 发布时间: 20210714
...中返回的完整场景scene添加到舞台 Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); /** ** 省略其它代码若干,可前往Layabox官网示例或相关文档中查看 */ })); ``` ##### 5.2.2 预设的加载与使用(.lh) 有一些模型或...
来源: Laya2.0_文档 发布时间: 20210714