27 Slicer 27 Slicer
Search Results for

    Show / Hide Table of Contents

    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
    TypeNameDescription
    MeshorigSharedMesh

    The original mesh.

    MeshmodifiedMesh

    The mesh the slicing will be applied to.

    MeshRenderermeshRenderer

    The mesh render that is used to render the mesh

    TransformmeshTransform

    The transform of the GameObject that contains the mesh.

    Vector3size

    The final size (as a scale) of all the items that are to be sliced. See SlicerController.Size for more information.

    BooleanskipUvs

    Should the UVs be sliced, if true the vertices will not be sliced.

    Hash128previousHash

    The previous hash from slicing, used to determine if any changes should be uploaded to the GPU etc.

    Returns
    TypeDescription
    Hash128

    Returns the hash of the sliced UVs, or SkipUvHash if skipUvs is set to true.

      ☀
      ☾
      In This Article
      Back to top
      27 Slicer documentation | Copyright 2021 Deftly Games
      ☀
      ☾