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.
Memory category | Instances |
---|
Member index 13
Description
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.
History 50
- 649 Change CanSave of from false to true
- 649 Change CanLoad of from false to true
- 648 Add
- 645 Change ValueType of from Content to ContentId
- 645 Change ValueType of ReferenceMeshId from Content to ContentId
- 553 Add
- 553 Change Default of ShrinkFactor from to 0
- 553 Change Default of ReferenceOriginWorld from to
- 553 Change Default of ReferenceOrigin from to
- 553 Change Default of Puffiness from to 1
- 553 Change Default of Order from to 1
- 553 Change Default of Enabled from to true
- 553 Change Default of DebugMode from to None
- 553 Change Default of Color from to Color3(1, 1, 1)
- 553 Change Default of BindOffset from to
- 553 Change Default of AutoSkin from to Disabled
- 529 Change WriteSecurity of Puffiness from PluginSecurity to None
- 529 Change WriteSecurity of Order from PluginSecurity to None
- 526 Add AutoSkin
- 486 Change ThreadSafety of ShrinkFactor from ReadOnly to ReadSafe
- 486 Change ThreadSafety of ReferenceOriginWorld from ReadOnly to ReadSafe
- 486 Change ThreadSafety of ReferenceOrigin from ReadOnly to ReadSafe
- 486 Change ThreadSafety of ReferenceMeshId from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Puffiness from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Order from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Enabled from ReadOnly to ReadSafe
- 486 Change ThreadSafety of DebugMode from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Color from ReadOnly to ReadSafe
- 486 Change ThreadSafety of BindOffset from ReadOnly to ReadSafe
- 462 Change ThreadSafety of ShrinkFactor from to ReadOnly
- 462 Change ThreadSafety of ReferenceOriginWorld from to ReadOnly
- 462 Change ThreadSafety of ReferenceOrigin from to ReadOnly
- 462 Change ThreadSafety of ReferenceMeshId from to ReadOnly
- 462 Change ThreadSafety of Puffiness from to ReadOnly
- 462 Change ThreadSafety of Order from to ReadOnly
- 462 Change ThreadSafety of Enabled from to ReadOnly
- 462 Change ThreadSafety of DebugMode from to ReadOnly
- 462 Change ThreadSafety of Color from to ReadOnly
- 462 Change ThreadSafety of BindOffset from to ReadOnly
- 458 Add ShrinkFactor
- 458 Add ReferenceOriginWorld
- 458 Add ReferenceOrigin
- 458 Add ReferenceMeshId
- 458 Add Puffiness
- 458 Add Order
- 458 Add Enabled
- 458 Add DebugMode
- 458 Add Color
- 458 Add BindOffset
- 458 Add WrapLayer
Members 13
AutoSkin
Type | Default | |
---|---|---|
WrapLayerAutoSkin | Disabled |
Thread safety | ReadSafe |
---|---|
Category | Behavior |
Loaded/Saved | true |
BindOffset
Type | Default | |
---|---|---|
CFrame |
This property is intended for fine-tuning purposes and is highly optional.
CFrame to 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.
Write security | PluginSecurity |
---|---|
Thread safety | ReadSafe |
Category | Tuning |
Loaded/Saved | true |
History 4
- 553 Change Default of BindOffset from to
- 486 Change ThreadSafety of BindOffset from ReadOnly to ReadSafe
- 462 Change ThreadSafety of BindOffset from to ReadOnly
- 458 Add BindOffset
Color
Type | Default | |
---|---|---|
Color3 | 1, 1, 1 |
Sets color used for the debug rendering. See WrapTarget.DebugMode
Thread safety | ReadSafe |
---|---|
Category | Debug |
Loaded/Saved | false |
DebugMode
Type | Default | |
---|---|---|
WrapLayerDebugMode | None |
Allows switching between different debugging visualization modes for cage meshes.
Thread safety | ReadSafe |
---|---|
Category | Debug |
Loaded/Saved | false |
Enabled
Type | Default | |
---|---|---|
bool | true |
Allows for disabling of the WrapLayer object as if it does not exist.
Thread safety | ReadSafe |
---|---|
Category | Behavior |
Loaded/Saved | true |
Order
Type | Default | |
---|---|---|
int | 1 |
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.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
Puffiness
Type | Default | |
---|---|---|
float | 1 |
Controls how much underlying clothing items inflate the current clothing item.
Valid range is -1 to 1. A value of -1 compresses the clothing, body, and all underlying layers such that the clothing itself takes the shape of the body. A value of 0 makes the clothing item fit as if it was the only piece of clothing being worn, compressing all underlying layers. A value of 1 (default) never compresses anything and infinitely inflates over underlying clothing items.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
ReferenceMeshId
Type | Default | |
---|---|---|
ContentId |
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
Write security | PluginSecurity |
---|---|
Thread safety | ReadSafe |
Category | Appearance |
Loaded/Saved | true |
History 4
- 645 Change ValueType of ReferenceMeshId from Content to ContentId
- 486 Change ThreadSafety of ReferenceMeshId from ReadOnly to ReadSafe
- 462 Change ThreadSafety of ReferenceMeshId from to ReadOnly
- 458 Add ReferenceMeshId
ReferenceOrigin
Type | Default | |
---|---|---|
CFrame |
Reference mesh offset relative to parent MeshPart (in the parent MeshPart space)
Note: this property is set up automatically by the FBX importer
Write security | PluginSecurity |
---|---|
Thread safety | ReadSafe |
Category | Appearance |
Loaded/Saved | true |
History 4
- 553 Change Default of ReferenceOrigin from to
- 486 Change ThreadSafety of ReferenceOrigin from ReadOnly to ReadSafe
- 462 Change ThreadSafety of ReferenceOrigin from to ReadOnly
- 458 Add ReferenceOrigin
ReferenceOriginWorld
Type | Default | |
---|---|---|
CFrame |
Reference mesh offset relative to parent MeshPart (in the world space)
Note: this property is set up automatically by the FBX importer
Thread safety | ReadSafe |
---|---|
Category | Data |
Loaded/Saved | false |
History 4
- 553 Change Default of ReferenceOriginWorld from to
- 486 Change ThreadSafety of ReferenceOriginWorld from ReadOnly to ReadSafe
- 462 Change ThreadSafety of ReferenceOriginWorld from to ReadOnly
- 458 Add ReferenceOriginWorld
ShrinkFactor
Type | Default | |
---|---|---|
float | 0 |
This property is intended for fine-tuning purposes and is highly optional.
Allows slight shrinking/expanding of the resulting render mesh, without affecting any other layers. This is useful in rare cases when the clothing mesh does not precisely fit the underlying clothing layers (the cage is usually slightly overestimated atop the real shape to avoid layer interpenetration). Even slight overestimation has the tendency to accumulate, especially when there are a lot of layers. While this is usually not critical, some items like backpacks may be problematic.
Valid range is -1 to 1. A value of -1 will maximally expand while a value of 1 will maximally shrink. A value of 0 (default) has no effect.
Write security | PluginSecurity |
---|---|
Thread safety | ReadSafe |
Category | Tuning |
Loaded/Saved | true |
History 4
- 553 Change Default of ShrinkFactor from to 0
- 486 Change ThreadSafety of ShrinkFactor from ReadOnly to ReadSafe
- 462 Change ThreadSafety of ShrinkFactor from to ReadOnly
- 458 Add ShrinkFactor