Class ColliderSlicerComponent
This component will search for any Colliders that are a descendant of this component. It will then slice any valid types of Collider.
Namespace: Slicer
Assembly: 27Slicer.dll
Syntax
[ExecuteAlways]
[DisallowMultipleComponent]
[AddComponentMenu("Slicer/Collider Slicer Component")]
[HelpURL("https://slicer.deftly.games/manual/components/collider_slicer_component.html")]
public class ColliderSlicerComponent : SlicerComponent
Examples
Fields
Name | Description |
---|---|
SkipVertices | Should the vertices of the mesh colliders be sliced. |
Properties
Name | Description |
---|---|
BoxColliderDetailsList | A read only collection of Box Colliders that are being managed by this ColliderSlicerComponent. |
MeshColliderDetailsList | A read only collection of Mesh Colliders that are being managed by this ColliderSlicerComponent. |
MeshSlicerManagedMeshColliderDetailsList | A read only collection of Mesh Colliders that are being tracked by this Collider Slicer and Managed by a MeshSlicerComponent. |
UnsupportedColliderDetailsList | A read only collection of Unsupported Colliders that are being tracked by this ColliderSlicerComponent. |
Methods
Name | Description |
---|---|
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! |