Skip to main content

CameraClearType

Specifies what to clear when a camera renders.

TypeNameInterface Description
EnumColor

• Function: Clear color only.

EnumColorDepth

• Function: Clear color and depth.

EnumColorDepthStencil

• Function: Clear color, depth and stencil.

EnumColorStencil

• Function: Clear color and stencil.

EnumDepth

• Function: Clear depth only.

EnumDepthStencil

• Function: Clear depth and stencil.

EnumDont

• Function: Clear nothing.

EnumStencil

• Function: Clear stencil only.

EnumTexture

• Function: Clear with a texture.

EnumTextureDepth

• Function: Clear depth with a texture.

Examples​

Color​

let value = APJS.CameraClearType.Color;

ColorDepth​

let value = APJS.CameraClearType.ColorDepth;

ColorDepthStencil​

let value = APJS.CameraClearType.ColorDepthStencil;

ColorStencil​

let value = APJS.CameraClearType.ColorStencil;

Depth​

let value = APJS.CameraClearType.Depth;

DepthStencil​

let value = APJS.CameraClearType.DepthStencil;

Dont​

let value = APJS.CameraClearType.Dont;

Stencil​

let value = APJS.CameraClearType.Stencil;

Texture​

let value = APJS.CameraClearType.Texture;

TextureDepth​

let value = APJS.CameraClearType.TextureDepth;

Use Case​

@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use CameraClearType here
}
onUpdate(deltaTime: number) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies