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

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

1251. 【解决】微信小游戏资源热更新/缓存更新 [ 49%]

...地址为资源地址,使用version版本匹配替换。         if (url.indexOf(":")> 0 && Laya.URL.customFormat !=null){             let a = url.replace(Laya.URL.basePath,"");             url=Laya.URL.customFormat(a);         }  4.恭喜你已经...

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

1252. 获取相机renderTexture 作为阴影 的UV [ 49%]

...Position获取阴影UV, 混合渲染在plane上   顶点着色器:  #if defined(_RECEIVESHADOWS)         vec4 uv = u_ShadowLightMatrix * position;         uv.xy /= uv.w; v_shadow_data = uv;     #endif片段着色器:     gl_FragColor.rgb=saturate(texture2D(u_S...

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

1253. [LayaNative3]Laya3.3.0 beat4 发布windows 无法导出自己的wasm文件 [ 49%]

...+ wasmFile, "arraybuffer").then(data => {                     if (data) {                         let module = new window.WebAssembly.Module(data);                         let instance = new window.WebAssembly.Instance(module, imports);                  ...

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

1254. laya里的所有单例都没有初始值 [ 49%]

...惧 赞同来自: public function Main() {                if (window["Laya3D"]) window["Laya3D"].init(GameConfig.width, GameConfig.height);             else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]);             trace("Laya.stage",Laya.stage...

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

1255. 截屏文件没有保存 [ 49%]

...到图片 参考的教程是:https://ldc.layabox.com/doc/?nav=zh-js-7-2-7 if( window.conch ) { console.log("i'm here 1"); window.conch.captureScreen(function(arrayBuff,width,height){ conch.saveAsPng(arrayBuff,width,height,conch.getCachePath()+"/test.png" ); console.log("i'm here 2:" + arrayBuff.byte...

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

1256. 升级到2.0后.原本用字符串索引module内的函数,发现不行了, 求指教 [ 49%]

...的问题应该能用2.x的官方例子提供的如下代码能解决,  if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height);         else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]);         Laya["Physics"] && Laya["Physics"].enable();  ...

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

1257. Laya2.0绘制扇形遮罩,显示到部分角度时显示会有部分缺失(demo已上传) [ 49%]

...age.addChild(sp2); let r: number = 0 Laya.timer.loop(100, this, () => { if (r >= 360) r = 0; r++; sp.graphics.clear(true); sp.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); sp2.graphics.clear(true); sp2.graphics.drawPie(0, 0, 50, 0, r, "#00ff1e"); }) 附件 : --> test.zip 2019-07-01 添加评论...

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

1258. LAYA3D,如何关闭ALPHA预乘 premultiply alpha [ 49%]

...to 0, more precision loss occurs on IE. Try separating color and alpha to different textures. 2018-04-14 0 0 分享 微博 QZONE 微信 InJoins 赞同来自: 又一个GITHUB上的相关信息: Some implementations of HTMLCanvasElement's CanvasRenderingContext2D store color values internally in pre...

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

1259. spine适配版微信开发者平台报错 [ 49%]

...es/sk/pipei.skel"; this.index = -1; this.startFun(); } static startFun() { if (!this.templet) this.templet = new Laya.SpineTemplet(Laya.SpineVersion.v3_8); this.templet.loadAni(this.aniPath); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this...

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

1260. Laya3D初始化 window.wxMiniGame is not a function [ 49%]

...用动画结束on方法,报错this.zombieAnimator.on is not a function if (window["Laya3D"]) Laya3D.init(width,heigh) 调用失败,引起底层问题 浏览器运行提示TypeError: xxx is not a function 希望Laya3D的入门提供一个unity的项目例子 LayaAirIDE2.2 - Laya3D init error ,mus...

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