Skip to main content

WrapMode

Texture coordinate wrapping mode.

TypeNameInterface Description
EnumClamp

• Function: Clamps the texture to the last pixel at the edge.

EnumMirror

• Function: Tiles the texture, creating a repeating pattern by mirroring it at every integer boundary.

EnumRepeat

• Function: Tiles the texture, creating a repeating pattern.

Examples​

Clamp​

let value = APJS.WrapMode.Clamp;

Mirror​

let value = APJS.WrapMode.Mirror;

Repeat​

let value = APJS.WrapMode.Repeat;

Use Case​

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