Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

RenderTexture.width

Switch to Manual
public int width;

Description

The width of the render texture in pixels.

Note that unlike Texture.width property, this is both read and write - setting a value changes size.

See Also:: height, format, depth.