大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0050 秒)
...地址为资源地址,使用version版本匹配替换。 if (url.indexOf(":")> 0 && Laya.URL.customFormat !=null){ let a = url.replace(Laya.URL.basePath,""); url=Laya.URL.customFormat(a); } 4.恭喜你已经...
来源: Laya_社区 发布时间: 20190620
...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
...+ wasmFile, "arraybuffer").then(data => { if (data) { let module = new window.WebAssembly.Module(data); let instance = new window.WebAssembly.Instance(module, imports); ...
来源: Laya_社区 发布时间: 20250626
...惧 赞同来自: 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
...到图片 参考的教程是: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
...的问题应该能用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
...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
...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
...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
...用动画结束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