Version: 2021.3

RenderTextureDescriptor.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);
public RenderTextureDescriptor (int width, int height, RenderTextureFormat colorFormat, int depthBufferBits, int mipCount);

参数

width RenderTexture 的宽度(以像素为单位)。
height RenderTexture 的高度(以像素为单位)。
colorFormat RenderTexture 的颜色格式。
depthStencilFormat The depth stencil format for the RenderTexture.
depthBufferBits 用于深度缓冲区的位数。
mipCount Amount of mips to allocate for the RenderTexture.

描述

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

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