• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 11 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0031 秒)

1. 使用百度地图显示当前位置(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 100%]

....window.BMap;       // 百度地图命名空间 var convertor = new BMap.Convertor(); // 坐标转换接口   var mapDiv; // 包含百度地图的div容器 ``` ### 二、接着是构造函数: ```java Laya.init(1, 1); // 使用高精度位置 Laya.Geolocation.enableHighAccuracy =...

来源: Laya2.0_文档 发布时间: 20210715

2. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 99%]

...dow.BMap;       // 百度地图命名空间 private convertor = new this.BMap.Convertor(); // 坐标转换接口   private mapDiv; // 包含百度地图的div容器 ``` ### 二、接着是构造函数: ```typescript class WatchPosition { constructor() { Laya.init(1, 1); this.init...

来源: Laya2.0_文档 发布时间: 20210714

3. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 99%]

...p;       // 百度地图命名空间 private var convertor:* = new BMap.Convertor(); // 坐标转换接口   private var mapDiv:*; // 包含百度地图的div容器 ``` ### 二、接着是构造函数: ```java public function WatchPosition() { Laya.init(1, 1);   init();   ...

来源: Laya2.0_文档 发布时间: 20210715

4. 用LayaAir引擎解析Tiled Map地图(TypeScript-2D进阶篇(TS)-扩展模块) [ 98%]

....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

5. 用LayaAir引擎解析Tiled Map地图(ActionScript-2D进阶篇(AS3)-扩展模块) [ 98%]

....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

6. 用LayaAir引擎解析Tiled Map地图(JavaScript-2D进阶篇(JS)-扩展模块) [ 97%]

....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

7. 手机QQ厘米秀GLTF模型使用说明(TypeScript-小游戏适配文档-QQ小游戏) [ 87%]

...资源, 用于还原脸部装扮 */ 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

8. BlinnPhong材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 52%]

...的可以查看原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

9. BlinnPhong材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 51%]

...的可以查看原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

10. BlinnPhong材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 51%]

...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