Class · inherits Instance
BaseWrap
Abstract base class for WrapTarget and WrapLayer that stores
cage mesh data for layered clothing deformation.
About BaseWrap
The base class for WrapTarget and WrapLayer objects. Note that
MeshPart is the only valid parent type for BaseWrap and that
it behaves more like a component of MeshPart than an independent
object.
Properties 6
CageMeshContent
: ContentThe cage mesh this wrap uses to deform geometry, stored as aContentvalue.The cage mesh this wrap uses to deform geometry, stored as a
Contentvalue that can reference an uploaded mesh asset or an in-memoryEditableMesh. Set automatically by the Importer. It is the backing store forBaseWrap.CageMeshId: that property reads the mesh ID from this content, and setting either keeps both in sync and raises a change on both.Defaults to an empty
Content. Without a valid cage, the wrap cannot contribute to layered clothing deformation forWrapLayerorWrapTarget.CageMeshId
: ContentIdAsset ID for cage mesh.This property is set up automatically by the 3D Importer.
Asset ID for cage mesh.
CageOriginWorld
: CFrameReadOnlyNotReplicatedCage mesh offset in world space.ImportOrigin
: CFrameDescribes where a global zero was while authoring the cage mesh in an asset creation tool.This property is set up automatically by the 3D Importer.
Describes where a global zero was while authoring the cage mesh in an asset creation tool such as Blender or Maya. This property is not used by the deformer but it is useful for tools/aligning scripts, for example aligning two parts by matching their pivots as follows:
ImportOriginWorld
: CFrameReadOnlyNotReplicatedDescribes where the origin (in world space) was while authoring the cage mesh in an asset creation tool.Describes where the origin (in world space) was while authoring the cage mesh in an asset creation tool such as Blender or Maya.
BaseWrap also has every member of Instance. 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.