大约有 2,553 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0103 秒)
Laya_社区(2056) Laya3.0_api(129) Laya2.0_文档(109) laya_api(84) Laya2.0_api(82) Laya3.0_文档(42) Laya_示例(36) Laya2.0_示例(15)
...是纹理采样使用了线性采样的原因的,2D的纹理可以使用Texture.isLinearSampling = false;来关闭线性采样,3d的纹理怎么关闭,下面是单个平面的创建代码 var plane: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(1 , 1, 1, 1))) as Laya.MeshSprite3D...
来源: Laya_社区 发布时间: 20180412
...these 赞同来自: MissingMethodException: Method not found: 'UnityEngine.Texture2D.EncodeToPNG'. LayaExport.DataManager.saveData () LayaExport.DataManager.getData () LayaAir3D.exportResource (Boolean isDebug) (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:427) LayaAir3D.OnGUI () (at Assets/LayaAir3D/L...
来源: Laya_社区 发布时间: 20171208
drawToTexture截大图有问题,会丢失 private nsp:Laya.Sprite; init(): void { this.nsp=new Laya.Sprite(); this.nsp.graphics.drawRect(0,0,1600,1600,"#ff0000"); this.nsp.mouseThrough=true; Laya.stage.addChild(this.nsp); this.nsp....
来源: Laya_社区 发布时间: 20220809
...自动更新缓存,只能通过调用reCache方法手动刷新。Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...
来源: laya_api 发布时间: 20170422
...r.create(this, this.createView)); 在createView回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但是我换个默认的图集Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.createVie...
来源: Laya_社区 发布时间: 20180326
...hTerrainSprite3D.createFromMeshAndHeightMap(terrain.meshFilter.sharedMesh, texture, 45.58879852294922, -45.58879852294922); //报错:Cannot read property 'width' of undefinedDemo见附件。 附件 : --> test.rar 2017-06-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20170601
...e的skiskin片目前是最方便的做法,你也可以通过graphics.drawTexture,替换图片之前,将旧的texture移除即可graphics.clear()! 2017-09-20 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 xfx7788 相关问题 2.0...
来源: Laya_社区 发布时间: 20170920
..., losing the least recently used one. Error: WebGL warning: texSubImage2D: Texture has not been initialized prior to a partial upload, forcing the browser to clear it. This may be slow. Error: WebGL warning: texSubImage2D: This operation requires zeroing texture data. This is slow. 2018-09-19 0 0 ...
来源: Laya_社区 发布时间: 20180918
...uniformMaps 规则详解5.1 uniformMaps 是数组而不是对象5.2 StorageTexture2D 与 StorageBuffer 规则5.3 未声明资源的自动补齐机制6. 编译流程与底层实现6.1 ComputeShader 创建与缓存6.2 GLSL → SPIR-V → WGSL7. 自动绑定机制与 SSBO 约束7.1 绑定点自动分...
来源: Laya3.0_文档 发布时间: 20260131
...生成文字贴给模型材质时只有背景颜色生效 如图所示,Texture在精灵内是显示正常的,贴在材质上就只剩下背景颜色了 var te: Laya.Label = new Laya.Label("test"); te.fontSize = 200; te.color = "#000000"; te.bgColor = "#d90f0b"; jm.albedoTexture = te.size(50...
来源: Laya_社区 发布时间: 20190724