Version: Unity 6.3 LTS (6000.3)
LanguageEnglish
  • C#

FragmentResult

struct in UnityEngine.LowLevelPhysics2D

/

Implemented in:UnityEngine.Physics2DModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

The result of a fragment operation. This must be disposed of after use otherwise leaks will occur. See PhysicsDestructor.Fragment.

Properties

Property Description
brokenGeometry The geometry that was fragmented (broken).
transform The transform used when fragmenting. All returned geometry uses this.
unbrokenGeometry The geometry that was not fragmented (unbroken).
unbrokenGeometryIslands The geometry islands indicating how polygons are connected together. Each generated polygon belongs to a unique island defining a set of polygons that are connected together as they share edges. The array returned contains a series of ranges where each range is a unique connected island where the range indicates both the start index and length of the original polygon indices. The number of discovered unique islands is defined by the size of the returned array. This is only valid when fragmenting with a mask with PhysicsDestructor.Fragment.

Public Methods

Method Description
Dispose Dispose of the fragment result.