Class SlicerComponent
The base class for all of the Slicers
Inheritance
Namespace: Slicer
Assembly: 27Slicer.dll
Syntax
[RequireComponent(typeof(SlicerController))]
[DefaultExecutionOrder(650)]
public abstract class SlicerComponent : MonoBehaviour
Examples
Fields
Name | Description |
---|---|
Skip | When set to true it will not calculate the bounds for the items it is tracking. |
Properties
Name | Description |
---|---|
Slicing | Is the slicing currently enabled. |
Methods
Name | Description |
---|---|
Calculate | Calculates the bounds for all of the items being managed by this SlicerComponent. It is in Local Object Space the parent SlicerController. |
Disable | Disables slicing for this SlicerComponent. |
Enable | Enables slicing for this SlicerComponent. |
Finalize | Finalizes slicing for this Slicer Component. |
Gather | Gathers details required for slicing.
It is called by the parent Slicer |
Post | It is called by the parent Slicer |
Pre | It is called by the parent Slicer |
Slice(Vector3, Transform, Bounds, Bounds) | Slices the tracked items, this is where the magic happens! |