Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

RenderTexture.isCubemap

var isCubemap: bool;
bool isCubemap;
isCubemap as bool

Description

If enabled, this Render Texture will be used as a Cubemap.

Cubemap render textures are most often used for dynamic cubemap reflections, see Camera.RenderToCubemap. A cubemap render texture must have the same width and height, and must be power of two size.

See Also: Camera.RenderToCubemap, Reflective shaders.