大约有 105 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0024 秒)
...de + '°, ' + info.latitude + '°),精确度:' + info.accuracy + 'm'); if(info.altitude != null) trace('海拔:' + info.altitude + 'm' + (info.altitudeAccuracy != null ? (',精确度:' + info.altitudeAccuracy + 'm') : '')); if(info.heading != null && !isNaN(info.heading)) trace('方向:'...
来源: Laya2.0_文档 发布时间: 20210715
...de + '°, ' + info.latitude + '°),精确度:' + info.accuracy + 'm'); if(info.altitude != null) trace('海拔:' + info.altitude + 'm' + (info.altitudeAccuracy != null ? (',精确度:' + info.altitudeAccuracy + 'm') : '')); if(info.heading != null && !isNaN(info.heading)) trace('方向:'...
来源: Laya2.0_文档 发布时间: 20210715
...de + '°, ' + info.latitude + '°),精确度:' + info.accuracy + 'm'); if(info.altitude != null) trace('海拔:' + info.altitude + 'm' + (info.altitudeAccuracy != null ? (',精确度:' + info.altitudeAccuracy + 'm') : '')); if(info.heading != null && !isNaN(info.heading)) trace('方向:'...
来源: Laya2.0_文档 发布时间: 20210714
...式进行监听网络变化,代码如下: JS代码如下 ```javascript if( conch ) { conch.setNetworkEvtFunction(function(type) { alert(type) }); } ``` AS代码如下: ```javascript if ( Render.isConchApp) { Browser.window["conch"].setNetworkEvtFunction(function(type):void { alert(type) }); } ...
来源: Laya2.0_文档 发布时间: 20210714
...function onUpdate():void { var touchCount:int = _scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if (isTwoTouch){ return; } _text.text = "触控点为1"; //获取当前的触控点,数量为1 var touch:Touch = _scene.inp...
来源: Laya2.0_文档 发布时间: 20210715
...求进行修改: ```javascript window.loadingView = new loadingView(); if(window.loadingView) { window.loadingView.loadingAutoClose=true;//true代表引擎控制关闭时机。false为开发者手动控制 window.loadingView.bgColor("#FFFFFF");//设置背景颜色 window.loadingView.setFontColor("...
来源: Laya2.0_文档 发布时间: 20210715
...Update方法 onUpdate() { var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if (this.isTwoTouch){ return; } this._text.text = "触控点为1"; //获取当前的触控点,数量为1 var touch = this._...
来源: Laya2.0_文档 发布时间: 20210715
...Update方法 onUpdate() { var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if (this.isTwoTouch){ return; } this._text.text = "触控点为1"; //获取当前的触控点,数量为1 var touch = this._...
来源: Laya2.0_文档 发布时间: 20210715
... 监听 changeMeshButton.on(Laya.Event.CLICK, this, function(){ index++; if (index % 5 === 1 ){ //切换mesh sphere.meshFilter.sharedMesh = box; } else if (index % 5 === 2){ //切换mesh sphere.meshFilter.sharedMesh = capsule; } else if(index % 5 === 3){ //切换mesh sphere.meshFilter.sharedMesh = c...
来源: Laya2.0_文档 发布时间: 20210714
... 监听 changeMeshButton.on(Laya.Event.CLICK, this, function(){ index++; if (index % 5 === 1 ){ //切换mesh sphere.meshFilter.sharedMesh = box; } else if (index % 5 === 2){ //切换mesh sphere.meshFilter.sharedMesh = capsule; } else if(index % 5 === 3){ //切换mesh sphere.meshFilter.sharedMesh = c...
来源: Laya2.0_文档 发布时间: 20210715