大约有 277 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0114 秒)
Laya_社区(197) Laya2.0_文档(34) Laya3.0_api(16) Laya3.0_文档(11) Laya2.0_api(6) Laya_示例(6) laya_api(4) Laya2.0_示例(3)
... Accelerator 发布微信游戏后失效。是因为什么? Accelerator.instance.on(Laya.Event.CHANGE, this, monitorAccelerator); function monitorAccelerator(acceleration, accelerationIncludingGravity, rotationRate, interval) { let x = accelerationIncludingGravity.x; let y ...
来源: Laya_社区 发布时间: 20180322
...= 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
...amera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = Laya.SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; })); ``` 来看下效果(图2)。 (图2) #### 3. 纹理加载 加载单个纹理使用Texture2D.load方法。这里我们创建了一个正...
来源: Laya2.0_文档 发布时间: 20210715
...= 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
...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
...amera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = Laya.SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; })); ``` 来看下效果(图2)。 (图2) #### 3. 纹理加载 加载单个纹理使用Texture2D.load方法。这里我们创建了一个正...
来源: Laya2.0_文档 发布时间: 20210715
..., "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
...时候报错: “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
...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
...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