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

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

1. 针对2.0.0 beta5 setLoadingPage 做增强 [ 100%]

...页面 * 支持 加载下一个场景的同时执行异步方法 */ 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

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

...是对摄相机进行。因此务必保持与摄相机相同。 **/ 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

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

...但文档和教程搜索无果,想请教如何做才能实现。 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

4. socket大型项目回调 [ 57%]

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