27 Slicer 27 Slicer
Search Results for

    Show / Hide Table of Contents

    Collider Slicer Component

    API DOCUMENTATION

    A Collider Slicer Component will slice any valid Colliders in its descendant Game Objects.

    The Collider Slicer Component must be on the same Game Object as a Slicer Controller.

    A disabled collider will not be sliced.

    Properties

    Inspector of a Collider Slicer Component

    PropertyFunction
    Skip Bounds CalculationWhen gathering details on what is being sliced, don't include any meshes in the bounds.
    Skip VerticesDo not modify the meshes vertices, this will disable any changes to the meshes geometry.

    Details

    A Collider Slicer Component will search any Game Object it receives from its ancestor Slicer Controller for a valid Collider. If the found Collider is a supported type, it will be sliced.

    Note

    It is recommended that you have the parent Slicer Controller in Edit Mode when you are making changes to how an object is being sliced.

    In most cases it is ok to make changes outside of edit mode, but if you are having issues with slices staying set, try making the adjustments in edit mode instead.

    Supported Colliders

    Colliders other than the ones listed here will not be sliced. If they need to be sliced, the unsupported colliders should be converted to a Mesh or Box Collider. Alternatively using a Position Slice Modifier to reposition the collider and a Scale Slice Modifier to scale it may be able to approximate the same effect.

    Note

    2D Colliders will not be sliced.

    Mesh Colliders

    Mesh Colliders can be sliced in two different way.

    If the mesh that is assigned to the Mesh Collider is also shared by a Mesh Slicer Component it lets the Mesh Slicer Component do the slicing and will use its sliced mesh as the collider mesh as well.

    Otherwise the Collider Slicer Component will manage the mesh slicing itself.

    Warning

    A Mesh must have its 'Read/Write Enabled' setting checked in the Model Import Settings window for slicing to occur.

    Box Colliders

    Box Colliders are sliced by taking the box's corners and treating them as if they are vertices in a mesh. These vertices are then sliced and then converted back into the properties that Box Collider requires.

    Note

    It is recommended that you have the parent Slicer Controller in Edit Mode when you are making changes to how an object is being sliced.

    In most cases it is ok to make changes outside of edit mode, but if you are having issues with slices staying set, try making the adjustments in edit mode instead.

    A Box Collider that is being sliced by a Collider Slicer Component should only have its Center and Size properties edited in edit mode as the slicer component does not know how to convert these properties from sliced to non-sliced values.

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

      Inspector of a Collider Slicer Component

      Collider Slicing