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

大约有 282 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0036 秒)

241. Native下htmlCanvas.context.getImageData获取的ImageData是空的。 [ 51%]

...环境。网上翻遍了资料,没找到解决方案。 Native下LayaGL.instance无法获取 请问LayaNative2.0能否做到每个子游戏分别打包zip,在Native中解包并跳转? 打包native报错 native下字体模糊 关于发布游戏到web/native后,资源加载问题 关于Sprite...

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

242. 重力感应 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

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

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

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

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

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

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

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

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

247. LayaBox加载TiledMap地图和注意事项 [ 50%]

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

248. 资源加载(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

249. 场景环境反射(ActionScript-3D基础(AS3)-LayaAir3D之场景渲染配置) [ 50%]

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

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

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

...时候报错: “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