Version: 2017.3

RenderTextureDescriptorConstructor

切换到手册
public RenderTextureDescriptor (int width, int height);
public RenderTextureDescriptor (int width, int height, RenderTextureFormat colorFormat);
public RenderTextureDescriptor (int width, int height, RenderTextureFormat colorFormat, int depthBufferBits);

参数

width RenderTexture 的宽度(以像素为单位)。
height RenderTexture 的高度(以像素为单位)。
colorFormat RenderTexture 的颜色格式。
depthBufferBits 用于深度缓冲区的位数。

描述

使用默认值或特定宽度、高度和格式创建 RenderTextureDescriptor。