大约有 11 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0031 秒)
....window.BMap; // 百度地图命名空间 var convertor = new BMap.Convertor(); // 坐标转换接口 var mapDiv; // 包含百度地图的div容器 ``` ### 二、接着是构造函数: ```java Laya.init(1, 1); // 使用高精度位置 Laya.Geolocation.enableHighAccuracy =...
来源: Laya2.0_文档 发布时间: 20210715
...dow.BMap; // 百度地图命名空间 private convertor = new this.BMap.Convertor(); // 坐标转换接口 private mapDiv; // 包含百度地图的div容器 ``` ### 二、接着是构造函数: ```typescript class WatchPosition { constructor() { Laya.init(1, 1); this.init...
来源: Laya2.0_文档 发布时间: 20210714
...p; // 百度地图命名空间 private var convertor:* = new BMap.Convertor(); // 坐标转换接口 private var mapDiv:*; // 包含百度地图的div容器 ``` ### 二、接着是构造函数: ```java public function WatchPosition() { Laya.init(1, 1); init(); ...
来源: Laya2.0_文档 发布时间: 20210715
....width,Laya.Browser.height,Laya.WebGL); //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(); //创建TiledMap地图 this.tMap.createMap("res/TiledMap/orthogonal.json",viewRect); } } new GameMain(); ``` 编...
来源: Laya2.0_文档 发布时间: 20210715
....init(Browser.width, Browser.height, WebGL); //创建TiledMap实例 tMap = new TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Rectangle = new Rectangle(0, 0, Browser.width, Browser.height); //创建TiledMap地图 tMap.createMap("res/TiledMap/orthogonal.json",viewRect); } } } ``` 编...
来源: Laya2.0_文档 发布时间: 20210714
....width,Laya.Browser.height,Laya.WebGL); //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect = new Laya.Rectangle(0,0,Laya.Browser.width,Laya.Browser.height); //创建TiledMap地图 this.tMap.createMap("res/TiledMap/orthogonal.json",viewRect); `...
来源: Laya2.0_文档 发布时间: 20210715
...资源, 用于还原脸部装扮 */ var struct: CmShowCharacterStruct = new CmShowCharacterStruct(); // gltf 模型资源对象 struct.gltfURL = {}; for (const key in this.gltfFile) { struct.gltfURL[key] = this.gltfFile[key]; } // 个性化配置对象 / 可省略 struct.customConfigURL = "res/sel...
来源: Laya2.0_文档 发布时间: 20210715
...的可以查看原demo:([demo地址]())。 ```typescript var material = new Laya.BlinnPhongMaterial(); //漫反射贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRend...
来源: Laya2.0_文档 发布时间: 20210715
...的可以查看原demo:([demo地址]())。 ```typescript var material = new Laya.BlinnPhongMaterial(); //漫反射贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRend...
来源: Laya2.0_文档 发布时间: 20210714
...demo:([demo地址]())。 ```typescript var material:BlinnPhongMaterial = new BlinnPhongMaterial(); //漫反射贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.alb...
来源: Laya2.0_文档 发布时间: 20210714