Class SlicerController
SlicerControllers are used to manage the slicing of Slicer
Namespace: Slicer
Assembly: 27Slicer.dll
Syntax
[DisallowMultipleComponent]
[ExecuteAlways]
[AddComponentMenu("Slicer/Slicer Controller")]
[HelpURL("https://slicer.deftly.games/manual/components/slicer_controller.html")]
public class SlicerController : MonoBehaviour
Examples
In the below image the SlicerController is managing the Mesh
The Size property is set to double the x dimension of the mesh while keeping the other dimensions the same as the original mesh.
The Slices property defines the where the slices should occur. Ranging from 0 (the center of the object), to 1 being the furthest extents of the object.

Fields
Name | Description |
---|---|
Offset | Offsets the |
Size | Adjusts (Scales) the final dimensions of the sliced item. |
Slices | Adjusts where the slices should occur. Ranging from 0 (the center of the object), to 1 being the furthest extents of the object. |
Properties
Name | Description |
---|---|
Complete | The bounding box of all of the of all the items that are being sliced. |
Previous | The hash that was calculated during the previous slice |
Sliced | The dimensions that will be used by the slicers to determine if particular features are to be stretched (scaled). |
Slice | A read only collection of Slice |
Slicer | A read only collection of Slicer |
Slicer | A read only collection of Slicer |
Methods
Name | Description |
---|---|
Disable | Disables slicing for all of the SlicerComponents controlled by this SlicerController. |
Enable | Enables slicing for all of the SlicerComponents controlled by this SlicerController. |
Finalize | Finalizes slicing for this Slicer Controller. |
Refresh | Refreshes the slices managed by this controller on the next frame update. |
Refresh | Refreshes the slices managed by this controller, this slice happens immediately. Generally you will want to use Refresh |