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

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

1. (layabox2.0) layaUI.max.all.ts里的module ui前为什么要加export [ 100%]

...ayaair2-cmd.js LayaMaxUI的导出能不能采用ES6 module的方式 export default 这种方式太痛苦了 2.2.0版本用命令行发布包报出异常 Error: Cannot find module 'gulp' 问题状态 最新活动: 2019-02-28 16:45 浏览: 3263 关注: 5 人 151*****601 • 2018-10-02 21:29 能不能...

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

2. 针对2.0.0 beta5 setLoadingPage 做增强 [ 85%]

...页面 * 支持 加载下一个场景的同时执行异步方法 */ export default class LoadPage { constructor(url = null) { this._loadScene = null if (url) this.preload(url) } /** * 预加载loading页面 * @param {String} url loading页面url */ async preload(url = 'loadingpage.scene') { if (this...

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

3. Laya2.0编译后所有js都自动合并到bundle.js中,导致bundle.js过大,加载速度很慢,bundle.js可以拆分吗 [ 72%]

...                    /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */     "module": "commonjs",                     /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ES...

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

4. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 58%]

...是对摄相机进行。因此务必保持与摄相机相同。 **/ export default class ExtCullingMask { public static enableLightCullingMask(scene: Laya.Scene3D) { //var proto = Laya.Scene3D.prototype as any; (scene as any).lightCullingMask = function (scene, camera) { //灯光处理开始 麒麟...

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

5. 继承自Laya.BaseMaterial并且自定义Shader的的自定义材质如何设置透明渲染 [ 53%]

...但文档和教程搜索无果,想请教如何做才能实现。 export default class CMat extends Laya.BaseMaterial { public static _mainTex : number; public static _mainCol : number; inited : boolean = false; constructor() { super(); if(!this.inited) { CMat._mainTex = Laya.Shader3D.propertyNameT...

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

6. socket大型项目回调 [ 40%]

...is.encodeUInt32(value.length),buffer); buffer.writeUTFBytes(value); break; default: var proto:any = protos.__messages[type] || this._clients["message " + type]; if (!!proto) { var buf:Laya.Byte = this.encodeProtos(proto, value); // buffer.writeArrayBuffer(this.encodeUInt32(buf.length)); Pomelo.write...

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