Version: 2022.2
언어: 한국어

Texture3D.GetPixelBilinear

매뉴얼로 전환
public Color GetPixelBilinear (float u, float v, float w, int mipLevel= 0);

파라미터

u The u coordinate of the pixel to get.
v The v coordinate of the pixel to get.
w The w coordinate of the pixel to get.
mipLevel The mipmap level to read from. The range is 0 through the texture's Texture.mipmapCount. The default value is 0.

반환

Color The pixel color.

설명

Gets the filtered pixel color at the normalized coordinates (u, v, w).

This method gets pixel data from the texture in CPU memory. Texture.isReadable must be true.

Unity uses bilinear filtering to return the pixel color.

The lower left corner is (0, 0, 0). If the pixel coordinate is outside the texture's dimensions, Unity clamps or repeats it, depending on the texture's TextureWrapMode.

You can't use GetPixelBilinear with textures that use Crunch texture compression. Use GetPixels32 instead.

See Also: GetPixel.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961