Texture3DConstructor

Cambiar al Manual
public Texture3D (int width, int height, int depth, TextureFormat textureFormat, bool mipChain);

Parámetros

widthWidth of texture in pixels.
heightHeight of texture in pixels.
depthProfundidad de la textura en pixeles.
formatFormato de los datos de la Textura.
mipmapDebería la textura tener mipmaps?

Descripción

Crea una nueva textura 3D vacía.

Las texturas 3D se pueden pensar como cajas de pixeles, con anchura, altura, y profundidad. Tenga en cuenta que las texturas grandes pueden consumir mucha memoria, por ejemplo una textura 1024x512x256 con el formato TextureFormat.ARGB32 y sin mipmaps consumirá 512MB de memoria.

Mirar también: Funciones SetPixels, SetPixels32, Apply.

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