Skip to main content

Camera.CubemapFace

Enum

Different faces of the cubemap that a camera can render into.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Since Lens Scripting v194

Index

Example

// @input Component.Camera camera

if (script.camera.renderTarget.control.textureType == RenderTargetProvider.TextureType.TextureCubemap) {
script.camera.renderTargetCubemapFace = Camera.CubemapFace.NegativeZ;
}

Enumeration Members

Back

Back: number

The back cubemap face, same as NegativeZ.

Since

Lens Scripting Version 194


Bottom

Bottom: number

The bottom cubemap face, same as NegativeY.

Since

Lens Scripting Version 194


Front

Front: number

The front cubemap face, same as PositiveZ.

Since

Lens Scripting Version 194


Left

Left: number

The left cubemap face, same as NegativeX.

Since

Lens Scripting Version 194


NegativeX

NegativeX: number

The negative X cubemap face.

Since

Lens Scripting Version 194


NegativeY

NegativeY: number

The negative Y cubemap face.

Since

Lens Scripting Version 194


NegativeZ

NegativeZ: number

The negative Z cubemap face.

Since

Lens Scripting Version 194


PositiveX

PositiveX: number

The positive X cubemap face.

Since

Lens Scripting Version 194


PositiveY

PositiveY: number

The positive Y cubemap face.

Since

Lens Scripting Version 194


PositiveZ

PositiveZ: number

The positive Z cubemap face.

Since

Lens Scripting Version 194


Right: number

The right cubemap face, same as PositiveX.

Since

Lens Scripting Version 194


Top

Top: number

The top cubemap face, same as PositiveY.

Since

Lens Scripting Version 194