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

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

231. 重力感应 Accelerator 发布微信游戏后失效。是因为什么? [ 51%]

... Accelerator 发布微信游戏后失效。是因为什么? Accelerator.instance.on(Laya.Event.CHANGE, this, monitorAccelerator); function monitorAccelerator(acceleration, accelerationIncludingGravity, rotationRate, interval) {         let x = accelerationIncludingGravity.x;         let y ...

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

232. 场景环境反射(TypeScript-3D基础(TS)-LayaAir3D之场景渲染配置) [ 51%]

...= camera.skyRenderer; //设置天空盒mesh skyRenderer.mesh = Laya.SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; //设置场景的反射贴图 scene.customReflection = mat.textureCube; //设置曝光强度 var exposureNumber = 0; mat.exposure = 0.6 + 1; })); ..... //加载Mes...

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

233. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 51%]

...amera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = Laya.SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; })); ``` 来看下效果(图2)。 ![](img/2.png)(图2) #### 3. 纹理加载 ​ 加载单个纹理使用Texture2D.load方法。这里我们创建了一个正...

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

234. 场景环境反射(JavaScript-3D基础(JS)-LayaAir3D之场景渲染配置) [ 51%]

...= camera.skyRenderer; //设置天空盒mesh skyRenderer.mesh = Laya.SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; //设置场景的反射贴图 scene.customReflection = mat.textureCube; //设置曝光强度 var exposureNumber:Number = 0; mat.exposure = 0.6 + 1; })); ..... //...

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

235. LayaBox加载TiledMap地图和注意事项 [ 51%]

...ends Laya.Scene {    constructor() { super();        DesertUI.instance = this; Laya.MouseManager.multiTouchEnabled = false;        this.loadScene("Desert.scene"); //初始化舞台 Laya.init(Laya.Browser.width, Laya.Browser.height, Laya.WebGL); //创建TiledMap实例 this.tMap...

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

236. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 50%]

...amera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = Laya.SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; })); ``` 来看下效果(图2)。 ![](img/2.png)(图2) #### 3. 纹理加载 ​ 加载单个纹理使用Texture2D.load方法。这里我们创建了一个正...

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

237. ts加密md5码封装 [ 50%]

..., "sourceMap": true }, "exclude": [ "node_modules" ] } test: let str = Md5.Instance.get_md5("123456"); console.log(str) //len:32 //e10adc3949ba59abbe56e057f20f883emd5.ts class Md5 { private static _inst:Md5; public static get Instance():Md5 { return this._inst ||(this._inst = new Md5()); } public ge...

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

238. 导出角色报错,求看下什么问题 [ 50%]

...时候报错: “NullReferenceException: Object reference not set to an instance of an object LayaExport.DataManager.getSkinnedMeshRendererComponentData (UnityEngine.GameObject gameObject, .JSONObject customProps) LayaExport.DataManager.getComponentsData (UnityEngine.GameObject gameObject, .JSONOb...

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

239. 统计信息 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...DrawCall(CT_DrawCall)4.8 Indirect DrawCall(CT_IndirectDrawCall)4.9 Instancing DrawCall(CT_Instancing_DrawCall)5. GPU Buffer Resource/Memory(GPU 缓冲资源/内存)5.1 GPU Buffer Memory(M_GPUBuffer)5.2 GPU Buffer Count(C_GPUBuffer)5.3 Vertex Buffer Memory(M_VertexBuffer)5...

来源: Laya3.0_文档 发布时间: 20260128

240. laya.d3.component.volume.batchvolume.StaticBatchVolume_API3.0 [ 50%]

...nders destroyed enableCustomBatchRender enableMergeBatchRender enableStaticInstanceBatchRender enabled hideFlags id importance probePosition type Methods _initialize _motionInVolume _reCaculateBoundBox _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRend...

来源: Laya3.0_api 发布时间: 20231115