Wrap Layer
Summary
Properties
ReferenceMeshId:ContentId |
API Reference
Properties
Non Uniform Scale Content
Code Samples
Fitting Maps
-- A WrapLayer has to be parented to a MeshPart.
local meshPart = Instance.new("MeshPart")
meshPart.Parent = workspace
local wrapLayer = Instance.new("WrapLayer")
wrapLayer.Parent = meshPart
-- Each map is a single-channel 8-bit image in UV space; only the red channel is
-- read. 0 keeps a vertex on its default fit, 255 fully allows the map's
-- transform, and values in between blend the two.
wrapLayer.RotateUniformScaleContent = Content.fromUri("rbxassetid://00000000")
wrapLayer.UniformScaleContent = Content.fromUri("rbxassetid://00000001")
wrapLayer.NonUniformScaleContent = Content.fromUri("rbxassetid://00000002")
-- Loosen how strongly the inner cage is held to the underlying target, letting
-- it reshape further toward this layer's fitting maps.
wrapLayer.TargetShaping = 0.5Puffiness
Reference Mesh Id
Wrap Layer. Reference Mesh Id:ContentId
Rotate Uniform Scale Content
Code Samples
Fitting Maps
-- A WrapLayer has to be parented to a MeshPart.
local meshPart = Instance.new("MeshPart")
meshPart.Parent = workspace
local wrapLayer = Instance.new("WrapLayer")
wrapLayer.Parent = meshPart
-- Each map is a single-channel 8-bit image in UV space; only the red channel is
-- read. 0 keeps a vertex on its default fit, 255 fully allows the map's
-- transform, and values in between blend the two.
wrapLayer.RotateUniformScaleContent = Content.fromUri("rbxassetid://00000000")
wrapLayer.UniformScaleContent = Content.fromUri("rbxassetid://00000001")
wrapLayer.NonUniformScaleContent = Content.fromUri("rbxassetid://00000002")
-- Loosen how strongly the inner cage is held to the underlying target, letting
-- it reshape further toward this layer's fitting maps.
wrapLayer.TargetShaping = 0.5Shrink Factor
Target Shaping
Code Samples
Fitting Maps
-- A WrapLayer has to be parented to a MeshPart.
local meshPart = Instance.new("MeshPart")
meshPart.Parent = workspace
local wrapLayer = Instance.new("WrapLayer")
wrapLayer.Parent = meshPart
-- Each map is a single-channel 8-bit image in UV space; only the red channel is
-- read. 0 keeps a vertex on its default fit, 255 fully allows the map's
-- transform, and values in between blend the two.
wrapLayer.RotateUniformScaleContent = Content.fromUri("rbxassetid://00000000")
wrapLayer.UniformScaleContent = Content.fromUri("rbxassetid://00000001")
wrapLayer.NonUniformScaleContent = Content.fromUri("rbxassetid://00000002")
-- Loosen how strongly the inner cage is held to the underlying target, letting
-- it reshape further toward this layer's fitting maps.
wrapLayer.TargetShaping = 0.5Uniform Scale Content
Code Samples
Fitting Maps
-- A WrapLayer has to be parented to a MeshPart.
local meshPart = Instance.new("MeshPart")
meshPart.Parent = workspace
local wrapLayer = Instance.new("WrapLayer")
wrapLayer.Parent = meshPart
-- Each map is a single-channel 8-bit image in UV space; only the red channel is
-- read. 0 keeps a vertex on its default fit, 255 fully allows the map's
-- transform, and values in between blend the two.
wrapLayer.RotateUniformScaleContent = Content.fromUri("rbxassetid://00000000")
wrapLayer.UniformScaleContent = Content.fromUri("rbxassetid://00000001")
wrapLayer.NonUniformScaleContent = Content.fromUri("rbxassetid://00000002")
-- Loosen how strongly the inner cage is held to the underlying target, letting
-- it reshape further toward this layer's fitting maps.
wrapLayer.TargetShaping = 0.5