泰课首页
技术分享
Unity课程
Manual
Scripting API
unity3d.com
Version:
2019.1
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.6
Manual
Scripting API
Language:
中文
English
日本語
Español
한국어
Scripting API
Version:
2019.1
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.6
SparseTextureConstructor
Switch to Manual
public
SparseTexture
(int
width
, int
height
,
TextureFormat
format
, int
mipCount
);
public
SparseTexture
(int
width
, int
height
,
TextureFormat
format
, int
mipCount
, bool
linear
);
Parameters
width
纹理宽度(以像素为单位)。
height
纹理高度(以像素为单位)。
format
纹理格式。
mipCount
多级渐进纹理数。通道 -1,用于创建完整多级渐进纹理链。
linear
纹理数据将位于线性还是 sRGB 颜色空间中(默认为 sRGB)。
Description
创建一个稀疏纹理。
请参阅
SparseTexture
。