Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

RenderTextureDescriptor.colorFormat

public RenderTextureFormat colorFormat;

Description

The format of the RenderTarget is expressed as a RenderTextureFormat. Internally, this format is stored as a GraphicsFormat compatible with the current system (see SystemInfo.GetCompatibleFormat). Therefore, if you set a format and immediately get it again, it may return a different result from the one just set.