27 Slicer 27 Slicer
Search Results for

    Show / Hide Table of Contents

    Class SlicerIgnore

    When applied to a GameObject, SlicerIgnore will block any processing of it's decedents. Any SliceModifiers that are on the same GameObject as the SlicerIgnore will be processed as normal.

    Inheritance
    Object
    Object
    Component
    Behaviour
    MonoBehaviour
    SlicerIgnore
    Namespace: Slicer
    Assembly: 27Slicer.dll
    Syntax
    [AddComponentMenu("Slicer/Slicer Ignore")]
    [HelpURL("https://slicer.deftly.games/manual/components/slicer_ignore.html")]
    public class SlicerIgnore : MonoBehaviour
    Examples

    Consider the following GameObject hierarchy. The mug and tablecloth both have a SlicerIgnore. Its decedents (Mug Model and Tablecloth Model) will not be sliced.

    However, SliceModifiers that are on the same GameObject as the SlicerIgnore will be processed as normal.

    graph TD
        A --- B
        A --- C
        C --- D
        A --- E
        E --- F
    
    A(Table<br/><br/>Slicer Controller<br/>Mesh Slicer Component)
    B(Table Model<br/><br/>Mesh Filter<br/>Mesh Renderer)
    C(Mug<br/><br/>Slicer Ignore<br/>Position Slice Modifier)
    D(Mug Model<br/><br/>Mesh Filter<br/>Mesh Renderer)
    E(Tablecloth<br/><br/>Slicer Ignore<br/>Position Slice Modifier<br/>Scale Slice Modifier)
    F(Tablecloth Model<br/><br/>Mesh Filter<br/>Mesh Renderer)
    



    REFERENCE MANUAL

    Methods

    NameDescription
    FinalizeSlicing()

    Finalizes slicing for this Slicer Ignore.

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