WrapTextureTransfer¶
WrapTextureTransfer allows a parent Decal to be wrapped around its parent MeshPart based on the cage of its WrapTarget.
Not implemented yet
This class exists in the current Roblox API but is not implemented in Nova yet. Scripts that reference it will fail at runtime.
Description¶
WrapTextureTransfer provides an alternative projection mode for Decal where this Decal is fit to the parent MeshPart based on it's CageMesh provided in WrapTarget.
This is useful as it allows fitting of Decals to a wide variety of differently shaped MeshParts that share a similar WrapTarget CageMesh topology. By authoring textures that are in the WrapTarget UV space, these textures can be reused across many different MeshParts with different texture layouts.
- DataModel Structure
- MeshPart
A way to visualize how this works is to imagine the Decals textures on the WrapTarget CageMesh, which is wrapped around the MeshPart. These textures are then projected from the CageMesh onto the MeshPart surface. Geometry that is internal to the MeshPart, or that is not covered by the CageMesh, will not receive any projected decal textures. Segmented regions of the target MeshPart are used to improve projection quality near holes or boundaries in the CageMesh.
Inheritance¶
Object โ Instance โ WrapTextureTransfer
Properties¶
| Member | Signature | Summary |
|---|---|---|
ReferenceCageMeshContent |
ReferenceCageMeshContent: Content |
An optional reference mesh used for pruning and validating the target cage. |
UVMaxBound |
UVMaxBound: Vector2 |
Determines the maximum bound of the UV space to include in the transfer. |
UVMinBound |
UVMinBound: Vector2 |
Determines the minimum bound of the UV space to include in the transfer. |
Methods¶
| Member | Signature | Summary |
|---|---|---|
PrepareProjectionMeshDataAsync |
WrapTextureTransfer:PrepareProjectionMeshDataAsync(): null |
Prepares and caches projection data for using this WrapTextureTransfer with projected EditableImage operations. |
Roblox reference: WrapTextureTransfer
Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.