PhysicsWorld.DrawResults.PolygonGeometryElement
A Polygon Geometry Element.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public readonly struct PhysicsWorld.DrawResults.PolygonGeometryElement
Fields
Value | Description |
|---|---|
| color | The color of the polygon element. |
| count | The number of points in the polygon element. |
| drawFillOptions | How the geometry element is filled with the color. See PhysicsWorld.DrawFillOptions. |
| elementDepth | The depth of the element. |
| p0 | The point #0 of the polygon element. |
| p1 | The point #1 of the polygon element. |
| p2 | The point #2 of the polygon element. |
| p3 | The point #3 of the polygon element. |
| p4 | The point #4 of the polygon element. |
| p5 | The point #5 of the polygon element. |
| p6 | The point #6 of the polygon element. |
| p7 | The point #7 of the polygon element. |
| radius | The radius of the polygon element. |
| transform | The transform of the polygon element. |
Static Methods
Method | Description |
|---|---|
| Size | The data size of the polygon element. This can be useful in understanding the memory stride in a ComputeBuffer or other structure. |