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

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

111. 区块地图-滚动地图 [ 50%]

...)(); //创建地图 function createMap() { //创建地图对象 tiledMap = new TiledMap(); mX = mY = 0; //创建地图,适当的时候调用destory销毁地图 tiledMap.createMap("../../res/tiledMap/desert.json", new Rectangle(0, 0, Browser.width, Browser.height), new Handler(this, completeHandler...

来源: Laya_示例 发布时间: 20251130

112. 区块地图-滚动地图 [ 50%]

...Browser = Laya.Browser; mX = mY = 0; // 创建地图对象 this.tiledMap = new TiledMap(); // 创建地图,适当的时候调用destory销毁地图 this.tiledMap.createMap("res/tiledMap/desert.json", new Rectangle(0, 0, Browser.width, Browser.height), new Handler(this, this.completeHandler)); } //...

来源: Laya2.0_示例 发布时间: 20251130

113. tiledMap类createMap()创建地图 如何理解这个viewRect视口区 [ 50%]

...     {         //创建地图对象         tiledMap = new TiledMap();         //创建Rectangle实例,视口区域 viewRect = new Laya.Rectangle(0,0,0,0);               mX = mY = 0;         //创建地图,适当的时候调用destory销毁地图 ...

来源: Laya_社区 发布时间: 20180612

114. libwebsocket [ 50%]

...们打印了log, 2018-08-21 11:20:31.548226+0800 game_hao[6707:3937898] new JSWebSocket::this=c41bb4a0 deletgate=c425c050 2018-08-21 11:20:31.548618+0800 game_hao[6707:3937898] WebSocket::init m_host: game.example.com, m_port: 6666, m_path: /ws/ [2018/08/21 11:20:31:5503] NOTICE: Ini...

来源: Laya_社区 发布时间: 20180821

115. 引擎1.7.6-beta,0.9.6的layanative,ios打包,真机iphone6, 发起websocket连接时失败 [ 49%]

...websocket连接时失败 2017-06-04 15:36:36.245916+0800 XXXX[4079:795703] new JSWebSocket::this=701bbc80 deletgate=70251b50 2017-06-04 15:36:36.246364+0800 lsj[4079:795703] WebSocket::init m_host: XXX.XXX.XXX.XXX, m_port: XXXXX, m_path: / [1496561796:2481] NOTICE: Initial logging level 7 [149656179...

来源: Laya_社区 发布时间: 20170604

116. 字节平台(抖音预览调试),因为一行代码导致无法启动问题 [ 49%]

...stance == null) { return instance } if (instance instanceof Date) { return new Date(instance.getTime()) as any } if (instance instanceof Array) { var cloneArr = [] as any[] ;(instance as any[]).forEach((value) => { cloneArr.push(value) }) return cloneArr.map((value: any) => GameUtils.deepCopy&...

来源: Laya_社区 发布时间: 20230625

117. 请问Laya如何使用第三方物理库 [ 49%]

...立一个单例里面跑Cannon.World private constructor() { this.world = new CANNON.World(); this.world.allowSleep = true; Laya.timer.frameLoop(1, this, this.Step); } public Step() { this.world.step(1 / 60); }   再把CANNON.Body包装成组件 export class CannonRigidbody extends Laya.Script3D { ...

来源: Laya_社区 发布时间: 20200217

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

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

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

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

120. [LayaAirIDE3]Laya.loader.on(Event.ERROR, this, this.onError) 无法侦听到加载资源失败 [ 48%]

...? laya3D动画无法播放 不带格式后缀的图片无法成功加载 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 问题状态 最新活动: 2024-07-09 17:01 浏览: 2757 关注: 3 人 138*****385 • 2024-07-05 18:11 兄弟,按你这方法也不行啊,不会触发错...

来源: Laya_社区 发布时间: 20240705