27 Slicer 27 Slicer
Search Results for

    Show / Hide Table of Contents

    Class MeshSlicerComponent

    This component will search for any MeshFilters that are a descendant of this component. It will then slice any meshes that are assigned to the found MeshFilters.

    Inheritance
    Object
    Object
    Component
    Behaviour
    MonoBehaviour
    SlicerComponent
    MeshSlicerComponent
    Inherited Members
    SlicerComponent.SlicingEnabled
    SlicerComponent.SkipBoundsCalculation
    Namespace: Slicer
    Assembly: 27Slicer.dll
    Syntax
    [ExecuteAlways]
    [DisallowMultipleComponent]
    [AddComponentMenu("Slicer/Mesh Slicer Component")]
    [HelpURL("https://slicer.deftly.games/manual/components/mesh_slicer_component.html")]
    public class MeshSlicerComponent : SlicerComponent
    Examples



    REFERENCE MANUAL

    Fields

    NameDescription
    SkipUvs

    Should the UVs of the mesh be sliced.

    SkipVertices

    Should the vertices of the mesh be sliced.

    Properties

    NameDescription
    MeshDetailsList

    A read only collection of Mesh Renders and Filters that are being managed by this MeshSlicerComponent.

    Methods

    NameDescription
    CalculateBounds()

    Calculates the bounds for all of the items being managed by this SlicerComponent.

    It is in Local Object Space the parent SlicerController.

    DisableSlicing()

    Disables slicing for this SlicerComponent.

    EnableSlicing()

    Enables slicing for this SlicerComponent.

    FinalizeSlicing()

    Finalizes slicing for this Slicer Component.

    GatherDetails(Transform, Transform)

    Gathers details required for slicing. It is called by the parent SlicerController and used to search for valid items to slice and gather details on those items.

    GetMeshDetailsByMesh(Transform, Mesh)

    Gets the MeshDetails of a Mesh if it is being tracked by this MeshSlicerComponent.

    GetMeshDetailsByTransform(Transform)

    Gets the MeshDetails of a Mesh if it is being tracked by this MeshSlicerComponent.

    PostGatherDetails()

    It is called by the parent SlicerController after calling GatherDetails(Transform, Transform).

    PreGatherDetails()

    It is called by the parent SlicerController prior to calling GatherDetails(Transform, Transform).

    Slice(Vector3, Transform, Bounds, Bounds)

    Slices the tracked items, this is where the magic happens!

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