大约有 177 项符合查询结果, 库内数据总量为 14,848 项。 (搜索耗时: 0.0096 秒)
请问Texture2D如何用base64字符串构建对象 给模型贴图的时候需要用base64位字符串。官方api中Texture2D的load方法的参数说明为 : Texture2D地址 。这个地址好像只能传入图片的绝对路径,如何使用base64加载呢? 附件 : --> 2018-05-18 添...
来源: Laya_社区 发布时间: 20180518
...cumentationAll Packages | All Classes | Index | Frames No Frames DataTexture2DProperties | Methods Packagelaya.d3.resourceClasspublic class DataTexture2DInheritanceDataTexture2D BaseTexture laya.resource.ResourcePublic Properties Hide Inherited Public Properties Show Inherited Public Propert...
来源: laya_api 发布时间: 20170929
...animation,loadAtlas后,AtlasResource的_referenceCount是0,对应的Texture2D的_referenceCount是AtlasResource中使用的次数,当animation执行destyoy后,AtlasResource和Texture2D的_referenceCount没有变化,再次创建后AtlasResource的_referenceCount依旧是0,对应的Textu...
来源: Laya_社区 发布时间: 20231212
...源加载完成后,会自动缓存至资源库中。 Image source : Texture 对象的纹理资源。 Image stage : Stage[read-only] 对舞台 stage 的引用。Sprite staticCache : Boolean 是否静态缓存此对象的当前帧的最终属性。为 true 时,子对象变化时不会自动...
来源: laya_api 发布时间: 20170929
...但是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...
来源: laya_api 发布时间: 20170929
layabox2.0,图集资源地址url缓存错误,导致texture恢复位图资源的时候,加载不到图片资源 问题是这样产生的: 调用scene.destroy销毁场景后,然后调用scene.gc去回收资源,然后调用scene.open打开关闭的场景发现原来图集的资源没有显...
来源: Laya_社区 发布时间: 20190109
如果把一张图片在内存中修改后,再重新加载为texture? 现在希望对一张下载的图片进行模糊,再把模糊后的对象放入texture或者image中显示, 请问下这个流程要怎么处理? 2017-07-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20170710
在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 我使用的版本是1.7.12 测试代码如下:module Main { import Sprite = Laya.Sprite import Texture = Laya.Texture import Handler = Laya.Handler export class MaskDemo { private Res: string; private img: Laya....
来源: Laya_社区 发布时间: 20171211
代码里面new renderTexture对象设置给camera的同时设置给sprite的Texture属性之后在sprite上使用遮罩Mask之后,整个Sprite都会不显示 代码里面new一个 renderTexture对象设置给camera的同时设置给sprite的Texture属性之后,然后给sprite添加一个遮罩...
来源: Laya_社区 发布时间: 20230904
drawTexture时,Matrix对象,a=-1,无法实现水平翻转 g.drawTexture(texture,100, 100, texture.width, texture.height, new laya.maths.Matrix(-1)); 为何无法实现水平翻转? 绘制的图片直接看不见了,如果不设置matrix.a = -1就不会出现。 2017-02-21 添加评论 免...
来源: Laya_社区 发布时间: 20170221