Specifies what kind of render target it is. Some texture types, for example TextureCubemap, need additional properties set on the rendering camera to work correctly.

//@input Asset.Texture renderTarget 

// Change the render target from a regular 2d render target to a cubemap
if (script.renderTarget.control.textureType == RenderTargetProvider.TextureType.Texture2D) {
script.renderTarget.control.textureType = RenderTargetProvider.TextureType.TextureCubemap;
}

Enumeration Members

Enumeration Members

Texture2D: number

A 2d texture. Render targets are this type by default.

TextureCubemap: number

A cubemap render target.