Skip to main content

Texture2DProvider

new Texture2DProvider() is an invalid constructor. If you need a 2D texture, you can get a texture by calling TextureUtil.createTexture2D()

TypeNameInterface Description
VariablesalphaPremul: boolean

Function: Whether to initialize the memory data for transparency premultiplication.

Functionsconstructor()

Examples

constructor()

let obj = new APJS.Texture2DProvider();

Use Case

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