Skip to main content

RenderTextureProvider

APJS Script API reference for the RenderTextureProvider class.

TypeNameInterface Description
VariablesclearColor: Color

Function: Gets the color used to clear the render texture when inputTexture is null.

Returns The clear color for the render texture.

VariablesclearType: CameraClearType

Function: Gets the clear type for the render texture.

Returns The camera clear type used for this render texture.

VariablesinputTexture: Texture | undefined

Function: Gets the input texture for this render texture.

Returns The input texture or undefined if none is set.

Functionsconstructor()

FunctionssetHeight(value: number): void

Function: Sets the height of the render texture.

Parameters

value: The height to set for the render texture.

FunctionssetWidth(value: number): void

Function: Sets the width of the render texture.

Parameters

value: The width to set for the render texture.

Examples

constructor()

let obj = new APJS.RenderTextureProvider();

Use Case

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