27 Slicer 27 Slicer
Search Results for

    Show / Hide Table of Contents

    Class SlicerComponent

    The base class for all of the Slicers

    Inheritance
    Object
    Object
    Component
    Behaviour
    MonoBehaviour
    SlicerComponent
    ColliderSlicerComponent
    MeshSlicerComponent
    Namespace: Slicer
    Assembly: 27Slicer.dll
    Syntax
    [RequireComponent(typeof(SlicerController))]
    [DefaultExecutionOrder(650)]
    public abstract class SlicerComponent : MonoBehaviour
    Examples



    REFERENCE MANUAL

    Fields

    NameDescription
    SkipBoundsCalculation

    When set to true it will not calculate the bounds for the items it is tracking.

    Properties

    NameDescription
    SlicingEnabled

    Is the slicing currently enabled.

    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.

    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
      ☀
      ☾