PhysicsDestructor.SliceResult
The result of a slice operation. This must be disposed of after use otherwise leaks will occur. See PhysicsDestructor.Slice.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
- Implements: IDisposable
public readonly struct PhysicsDestructor.SliceResult : IDisposable
Properties
Property | Description |
|---|---|
| leftGeometry | The geometry that was sliced on the "left" of the line. |
| rightGeometry | The geometry that was sliced on the "right" of the line. |
| transform | The transform used when slicing. All returned geometry uses this. |
Methods
Method | Description |
|---|---|
| Dispose | Dispose of the slice result. |