Composite Slicer
Scene Path: /Asset/Plugins/27 Slicer/Demos/3. Composite Slicer/Composite Slicer.unity
Introduction
A SlicerController and its SlicerComponents can manage multiple descendent objects. The bounds of these objects are combined and sliced as one.
This wall and window are made up of three meshes and is sliced so the window can be appropriately stretched.
Example
In the video example below Edit Mode
of the Slicer Controller is toggled on and off. It then navigates through the Wall hierarchy to show how it is setup.
While not demonstrated here, colliders sliced by a Collider Slicer Component can be sliced in the same way.
Note
These demos are setup to only work with the Built-in Render Pipeline.
The lighting and materials will be incorrect if the demo is loaded into a project with a different render pipeline enabled.
27 Slicer is compatible with these renderers when properly setup. The Compatibility page has further information.
Credits
The assets used in these demos are by Kenney. Licensed under Public Domain CC0 1.0 Universal (CC0 1.0).