RenderTextureDescriptor.RenderTextureDescriptor

Unity · Версия 2020.3 LTS · Scripting · RenderTextureDescriptor

RenderTextureDescriptor.RenderTextureDescriptor

Объявление

public RenderTextureDescriptor(int width, int height);

public RenderTextureDescriptor(int width, int height, RenderTextureFormat colorFormat);

public RenderTextureDescriptor(int width, int height, RenderTextureFormat colorFormat, int depthBufferBits);

public RenderTextureDescriptor(int width, int height, RenderTextureFormat colorFormat, int depthBufferBits, int mipCount);

Параметры

width Ширина RenderTexture в пикселях.
height Высота RenderTexture в пикселях.
colorFormat Формат цвета для RenderTexture.
depthStencilFormat Формат трафарета глубины для RenderTexture.
depthBufferBits Количество битов, используемых для буфера глубины.
mipCount Количество мипов, выделяемых для RenderTexture.

Описание

Создайте RenderTextureDescriptor со значениями по умолчанию или определенной шириной, высотой и форматом.

Обновлено 17 ноября 2026 г.