大约有 3,176 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0086 秒)
Laya_社区(2392) Laya3.0_api(242) Laya2.0_文档(138) Laya2.0_api(136) laya_api(135) Laya3.0_文档(63) Laya_示例(52) Laya2.0_示例(18)
...想走srgb与gamma矫正。但是我无论怎么设置srgb空间 true或者false 结果都会走gammaspace的shader定义。 就导致点了srgb正常 不点srgb就变的非常白。 另外 然后我期望srgb是false 目前看ide代码只能是textureType是默认值才可以设置sRGB=false...
来源: Laya_社区 发布时间: 20231016
...rce._id Defined in laya/resource/Resource.ts:97 _inPool _inPool: boolean = false Inherited from RenderTexture._inPool Defined in laya/resource/RenderTexture.ts:98 _isCameraTarget _isCameraTarget: boolean = false Implementation of IRenderTarget._isCameraTarget Inherited from RenderTexture._isCameraTa...
来源: Laya3.0_api 发布时间: 20231115
...后,是否自动销毁(销毁节点和使用到的资源),默认为false*/ autoDestroyAtClosed: boolean = false; 当勾选 Auto Destroy At Closed后,场景在关闭时会自动调用场景的销毁 Destroy() 方法 1.4 mouseThrough属性 另外一个属性是 Mouse Through,默认是勾...
来源: Laya3.0_文档 发布时间: 20241014
...rce._id Defined in laya/resource/Resource.ts:97 _inPool _inPool: boolean = false Inherited from RenderTexture._inPool Defined in laya/resource/RenderTexture.ts:98 _isCameraTarget _isCameraTarget: boolean = false Implementation of IRenderTarget._isCameraTarget Inherited from RenderTexture._isCameraTa...
来源: Laya3.0_api 发布时间: 20231115
...tor3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, ...
来源: Laya_社区 发布时间: 20180605
...开发了 window.addEventListener('deviceorientation', this.oriListener, false); window.addEventListener('MozOrientation', this.oriListener, false); //为firefox所用 window.addEventListener('devicemotion', this.oriListener, false); //重力感应 2020-05-10 0 0 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180322
...0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D.load("../../res/threeDimen/env/sp_defau...
来源: Laya_示例 发布时间: 20241118
... true; for(let k in data) { if(!first){ query += '&'; } else { first = false; } query += k + "=" + data[k]; } if(url.indexOf('?') != -1) { url += "&" + query; } else { url += "?" + query; } body = null; } } headers = headers || []; let hasContentType = false; for(let k of headers) { if(k.toL...
来源: Laya_社区 发布时间: 20170123
...eate(this, this.onAssetLoaded), Handler.create(this, this.onLoading, null, false), Loader.TEXT); // 侦听加载失败 Laya.loader.on(Event.ERROR, this, this.onError); } onAssetLoaded(texture) { // 使用texture console.log("加载结束"); } // 加载进度侦听器 onLoading(progress) { console.lo...
来源: Laya2.0_示例 发布时间: 20241118
... 1、sprite remove和visible差不多,都不会渲染,但是visible=false会产生节点遍历,remove会产生数组操作,都是有消耗的,如果长期不显示,建议remove,如果频繁,建议visible 2、sprite和drawcall都不变,fps也会受图片加载解析上传显卡,...
来源: Laya_社区 发布时间: 20170307