大约有 290 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0045 秒)
Texture在绘制时能不能再次指定缩放? 比如大地图,未加载完成之前,想把未加载的一些零散的区块用小地图的相应块进行放大绘制一下马赛克效果 现在只能是对每一个未加载的块都创建一个sprite感觉好浪费,地图切得小的时...
来源: Laya_社区 发布时间: 20170305
texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 export class Texture2dTest { private sprite3D:Laya.Sprite3D; private readonly AllPng:string[] = ["pic-001.png","output-06.png"]; private texture:Laya.Texture2D; private box; constructor(){ Laya3D.init(0, 0); Laya.s...
来源: Laya_社区 发布时间: 20220815
...属性和方法 > 属性 `albedoColor:Vector4` 漫反射颜色。 `albedoTexture:BaseTexture` 漫反射贴图。 `emissionColor:Vector4` 放射颜色。 `emissionTexture:BaseTexture` 放射贴图。 `enableEmission:Boolean` 是否激活放射属性。 `enableReflection:Boolean` 是否开启反射。...
来源: Laya2.0_文档 发布时间: 20210715
...属性和方法 > 属性 `albedoColor:Vector4` 漫反射颜色。 `albedoTexture:BaseTexture` 漫反射贴图。 `emissionColor:Vector4` 放射颜色。 `emissionTexture:BaseTexture` 放射贴图。 `enableEmission:Boolean` 是否激活放射属性。 `enableReflection:Boolean` 是否开启反射。...
来源: Laya2.0_文档 发布时间: 20210714
...属性和方法 > 属性 `albedoColor:Vector4` 漫反射颜色。 `albedoTexture:BaseTexture` 漫反射贴图。 `emissionColor:Vector4` 放射颜色。 `emissionTexture:BaseTexture` 放射贴图。 `enableEmission:Boolean` 是否激活放射属性。 `enableReflection:Boolean` 是否开启反射。...
来源: Laya2.0_文档 发布时间: 20210714
...) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 Texture图片能否进行翻转? laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 谷歌浏览器播放mp3出现The AudioContext was not allowed to start. Laya2.0 WebGl...
来源: Laya_社区 发布时间: 20170428
... DrawTrianglesCmd matrix : Matrix 缩放矩阵。 DrawTrianglesCmd texture : Texture 纹理。 DrawTrianglesCmd uvs : Float32Array UV数据。 DrawTrianglesCmd vertices : Float32Array 顶点数组。 DrawTrianglesCmd x : Number X轴偏移量。 DrawTrianglesCmd y : Number Y轴偏...
来源: Laya2.0_api 发布时间: 20190513
...是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer...
来源: laya_api 发布时间: 20170929
...但是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...
来源: laya_api 发布时间: 20170929
在Canvas模式下 drawTexture出错 WebGL模式下正常 Canvas模式下 在短时间内连续调用drawTexture和destroy会报错 Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLImageElement or SVGImageEleme...
来源: Laya_社区 发布时间: 20180118