Class · inherits BaseWrap
WrapLayer
The WrapLayer object defines a 3D accessory's inner and outer surfaces and other properties related to layering accessories. These surfaces, or the Inner Cage and Outer Cage, are similar to collision boxes, and describe the surfaces of which other 3D accessories can be placed without clipping or breaking.
About WrapLayer
The WrapLayer object defines a 3D accessory's inner and outer surfaces and other properties related to layering accessories. These surfaces, or the Inner Cage and Outer Cage, are similar to collision boxes, and describe the surfaces of which other 3D accessories can be placed without clipping or breaking.
Internally, WrapLayer also uses the UV layout of the Inner and Outer cages to match coordinates to another 3D object's cage. This powers the deformation of objects around differently shaped avatars and underlying accessories.
Properties 10
AutoSkin
: WrapLayerAutoSkinDetermines whether this WrapLayer automatically transfers skinning data from the underlying body mesh to the clothing mesh.Determines whether this WrapLayer automatically transfers skinning data from the underlying body mesh to the clothing mesh. When set to
EnabledOverride, skinning is applied regardless of whether the clothing mesh already has skinning data. When set toEnabledPreserve, skinning is only applied if the mesh does not already have skinning data.This property requires
StarterPlayer.LoadCharacterLayeredClothingto be set toEnabled(orDefault) in order to function. When layered clothing is disabled, the auto-skinning pipeline does not run and this property has no effect.For more information, see Automatic Skinning Transfer.
BindOffset
: CFrameCFrameis used to adjust a binding point for clothing item mesh. Could be used to move and rotate clothing items. This property is intended for fine-tuning only and it is heavily optional.This property is intended for fine-tuning purposes and is highly optional.
CFrameto adjust a binding point for a clothing item mesh. Allows for fine-tuning of clothing items (slight adjustment of position/rotation to get a unique look) in contexts such as community-made avatar editors.Color
: Color3NotReplicatedNotScriptableSets color used for the debug rendering. SeeWrapTarget.DebugMode.Sets color used for the debug rendering. See
WrapTarget.DebugModeDebugMode
: WrapLayerDebugModeNotReplicatedNotScriptableAllows switching between different debugging visualization modes for cage meshes.Enabled
: booleanAllows for disabling of theWrapLayerobject as if it does not exist.Order
: intControls the composition order for layered clothing.Controls the composition order for layered clothing. Clothing items with higher order will appear on top of clothing items with lower order. If two items have the same order, the deformer composition order is ambiguous and depends on serialization order. Default value is 1.
ReferenceMeshContent
: ContentThe reference mesh that defines the Inner Cage of theWrapLayer, stored as aContentvalue.The reference mesh that defines the inner cage of a
WrapLayer, stored as aContentvalue. Together with the outer cage fromCageMeshContent, the inner cage describes the surfaces used to fit and deform the accessory around an avatar and underlying accessories without clipping. AWrapLayeris only considered valid once both its cage mesh and its reference mesh are set.The reference mesh establishes the standard topology and UV coordinates used for index matching. It is expected that for all catalog avatars this points to one of the 15 standard reference meshes provided by Roblox, but for some NPCs or a custom avatar system it might point to a different mesh. This property is normally set up automatically by the Importer.
This
Content-typed property is the successor toWrapLayer.ReferenceMeshIdand reads and writes the same underlying storage. Defaults to an emptyContent.ReferenceMeshId
: ContentIdAssetID for reference mesh used to define Inner Cage of a 3D object.AssetID for reference mesh used to define Inner Cage of a 3D object
Reference mesh is used to define standard topology and UV coordinates for index matching. It is expected that for all catalog avatars, this will point to one of 15 standard reference meshes provided by Roblox. But for some NPCs or a custom avatar system, this might point to other meshes.
Note: this property is set up automatically by the FBX importer
ReferenceOrigin
: CFrameReference mesh offset relative to parent MeshPart (in the parent MeshPart space)Note: this property is set up automatically by the FBX importer.
Reference mesh offset relative to parent MeshPart (in the parent MeshPart space)
Note: this property is set up automatically by the FBX importer
ReferenceOriginWorld
: CFrameReadOnlyNotReplicatedReference mesh offset relative to parent MeshPart (in the world space)Note: this property is set up automatically by the FBX importer.
Reference mesh offset relative to parent MeshPart (in the world space)
Note: this property is set up automatically by the FBX importer
WrapLayer also has every member of BaseWrap. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.