大约有 1,726 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0100 秒)
Laya_社区(1387) Laya3.0_api(107) laya_api(68) Laya2.0_api(68) Laya2.0_文档(65) Laya3.0_文档(18) Laya_示例(8) Laya2.0_示例(5)
...tus }, (state, responseText) => { this.errors[path] = `Couldn't load texture atlas ${path}: status ${status}, ${responseText}`; if (error) error(path, `Couldn't load texture atlas ${path}: status ${status}, ${responseText}`); this.toLoad--; this.loaded++; }); 附件 : --> 2022-01-22 添加评...
来源: Laya_社区 发布时间: 20220122
...rite templet : Templet[read-only] 得到动画模板的引用 Skeleton texture : Texture 设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。 等同于graphics.clear();graphics.drawImage(),但性能更高 还可以赋值一个图片地址,...
来源: Laya2.0_api 发布时间: 20190513
...); sp.graphics.drawPie(128,128,128,0,angle,"0xff0000"); var tex = sp.drawToTexture(256,256,0,0); //var html:Laya.HTMLCanvas = sp.drawToCanvas(256,256,0,0); //img.loadImageSource(html.source,true); //html.clear(); //html.destroy(); mat.albedoTexture.destroy(); // 先删除旧的 mat.albedoTexture = t...
来源: Laya_社区 发布时间: 20190520
...ball1mat: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(layabox: Laya.Texture2D): void{ ball1mat.albedoTexture = layabox; })); //ball1mat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); ball1.meshRenderer.material...
来源: Laya_社区 发布时间: 20190506
3d的纹理无法释放 如图,3d纹理类型是texture2d,不能执行disposebitmap方法 另外,官方给出的 var resouce = Laya.loader.getRes(resourceName); if(resouce) resouce.destroy(); 方法也无法释放内存,亲测,native上,系统内存会不断增长,直到崩溃,...
来源: Laya_社区 发布时间: 20181219
...nction(){ /** * 地板类 */ function Floor(){ //背景贴图纹理 this.bgTexture = null; //背景 this.bg = null; Floor.__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; _proto.init = function(){ //...
来源: Laya_社区 发布时间: 20160728
... (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); ...
来源: Laya_社区 发布时间: 20171220
...数据要更少,所以这种天空的性能要更好一些。 Panoramic Texture:天空盒的纹理贴图(一张球形模型对应的贴图) 2.1.1 立方体天空 立方体天空盒用到的6张可以无缝相接的贴图参考,图2-5所示 (图2-5) 2.1.2 球形天空 是一个球形模...
来源: Laya3.0_文档 发布时间: 20251010
...致出现闪烁。 原因:spine动画模板类SpineTemplet_3_x 使用的Texture是加载回来后,从新创建了一个SpineGLTexture,没有放进Loader.textureMap中管理,既textureMap中缓存起来的Texture与spine在destroyUnusedResources后没有关联了,然后spine是调用drawTri...
来源: Laya_社区 发布时间: 20220820
...red 赞同来自: 您好,这个问题是由于真机不支持webgl的OES_texture_float_linear跟OES_texture_half_float两个扩展导致的。 我们联系一下微信平台,看看他们能不能解决 2024-07-23 0 0 分享 微博 QZONE 微信 layaAir小孟 赞同来自: 您好,方便将这...
来源: Laya_社区 发布时间: 20240718