3 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

WrapTargetDebugMode

The Studio-only property for quickly visualizing and debugging meshes with only outer cages.

This debug visualization only works when the WrapTarget is active and does not work if WrapTarget is not active or incorrectly configured.

Items

NameValueDescription
None0This debug rendering mode does nothing, and this is the default value.
TargetCageOriginal1This debug mode shows the original cage mesh as it was created.
TargetCageCompressed2This debug mode shows corresponding cage mesh compressed by clothing layers above it. This debug mode is intended to validate that the compression algorithm and corresponding cages work as intended.
TargetCageInterface3This debug mode shows the resulting cage mesh for the corresponding Wrap Instance. This debug mode is intended to validate that the final deformed cage looks as intended.
TargetLayerCageOriginal4The same as TargetCageOriginal but affects all WrapTargets that belong to the Wrap Deformer simultaneously. It doesn't matter which particular WrapTarget you enable this debug visualization option.
TargetLayerCageCompressed5The same as TargetCageCompressed but affects all WrapTargets that belong to the Wrap Deformer simultaneously. It doesn't matter which particular WrapTarget you enable this debug visualization option.
TargetLayerInterface6The same as TargetCageInterface but affects all WrapTargets that belong to the Wrap Deformer simultaneously. It doesn't matter which particular WrapTarget you enable this debug visualization option.
Rbf7This debug mode visualizes the internal RBF solver state. You can estimate the wrap deformer expected behavior by looking at this state. All renderable mesh vertices move from a "big sphere" to a "small sphere" along a corresponding line connecting two spheres.
OuterCageDetail8Visualizes outer cage vertices and related cage faces when hovering a mesh triangle in Studio.
PreWrapDeformerCage9Renders the outer cage as wireframe with vertex markers in its pre-deformation state.

None

This debug rendering mode does nothing, and this is the default value.

FieldValue
value0

TargetCageOriginal

This debug mode shows the original cage mesh as it was created.

FieldValue
value1

TargetCageCompressed

This debug mode shows corresponding cage mesh compressed by clothing layers above it. This debug mode is intended to validate that the compression algorithm and corresponding cages work as intended.

FieldValue
value2

TargetCageInterface

This debug mode shows the resulting cage mesh for the corresponding Wrap Instance. This debug mode is intended to validate that the final deformed cage looks as intended.

FieldValue
value3

TargetLayerCageOriginal

The same as TargetCageOriginal but affects all WrapTargets that belong to the Wrap Deformer simultaneously. It doesn't matter which particular WrapTarget you enable this debug visualization option.

FieldValue
value4

TargetLayerCageCompressed

The same as TargetCageCompressed but affects all WrapTargets that belong to the Wrap Deformer simultaneously. It doesn't matter which particular WrapTarget you enable this debug visualization option.

FieldValue
value5

TargetLayerInterface

The same as TargetCageInterface but affects all WrapTargets that belong to the Wrap Deformer simultaneously. It doesn't matter which particular WrapTarget you enable this debug visualization option.

FieldValue
value6

Rbf

This debug mode visualizes the internal RBF solver state. You can estimate the wrap deformer expected behavior by looking at this state. All renderable mesh vertices move from a "big sphere" to a "small sphere" along a corresponding line connecting two spheres.

FieldValue
value7

OuterCageDetail

Visualizes outer cage vertices and related cage faces when hovering a mesh triangle in Studio.

FieldValue
value8

PreWrapDeformerCage

Renders the outer cage as wireframe with vertex markers in its pre-deformation state.

FieldValue
value9