Method SliceUvs
SliceUvs(Mesh, Mesh, MeshRenderer, Transform, Vector3, Boolean, Hash128)
Slices the UVs of the supplied origSharedMesh
and applies it to the supplied modifiedMesh
.
Declaration
public static Hash128 SliceUvs(Mesh origSharedMesh, Mesh modifiedMesh, MeshRenderer meshRenderer, Transform meshTransform, Vector3 size, bool skipUvs, Hash128 previousHash)
Parameters
Type | Name | Description |
---|---|---|
Mesh | origSharedMesh | The original mesh. |
Mesh | modifiedMesh | The mesh the slicing will be applied to. |
MeshRenderer | meshRenderer | The mesh render that is used to render the mesh |
Transform | meshTransform | The transform of the GameObject that contains the mesh. |
Vector3 | size | The final size (as a scale) of all the items that are to be sliced. See |
Boolean | skipUvs | Should the UVs be sliced, if true the vertices will not be sliced. |
Hash128 | previousHash | The previous hash from slicing, used to determine if any changes should be uploaded to the GPU etc. |
Returns
Type | Description |
---|---|
Hash128 | Returns the hash of the sliced UVs, or SkipUvHash if |