# PhysicsWorld.DrawResults

> The draw results retrieved from the world. You must immediately extract what information you need and not directly reference the returned data as it will be cleared immediately after being provided.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.U2D.Physics](/engine/6000.5/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public readonly struct PhysicsWorld.DrawResults
```

## Properties

| Property                                                                                                                   | Description                                                                                                                                                                                                                                                                                                                                                                                          |
| -------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [capsuleGeometryArray](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/drawresults/capsulegeometryarray.md) | Retrieve the Capsule Geometry Element. Any new [PhysicsWorld](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld.md) drawing will invalidate this data so referring to this data afterwards may cause an unavoidable crash! You must immediately extract what information you need and not directly reference the returned data as it will be cleared immediately after being provided.  |
| [capsuleGeometrySpan](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/drawresults/capsulegeometryspan.md)   | Retrieve the Capsule Geometry Elements. Any new [PhysicsWorld](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld.md) drawing will invalidate this data so referring to this data afterwards may cause an unavoidable crash! You must immediately extract what information you need and not directly reference the returned data as it will be cleared immediately after being provided. |
| [circleGeometryArray](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/drawresults/circlegeometryarray.md)   | Retrieve the Circle Geometry Elements. Any new [PhysicsWorld](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld.md) drawing will invalidate this data so referring to this data afterwards may cause an unavoidable crash! You must immediately extract what information you need and not directly reference the returned data as it will be cleared immediately after being provided.  |
| [circleGeometrySpan](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/drawresults/circlegeometryspan.md)     | Retrieve the Circle Geometry Elements. Any new [PhysicsWorld](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld.md) drawing will invalidate this data so referring to this data afterwards may cause an unavoidable crash! You must immediately extract what information you need and not directly reference the returned data as it will be cleared immediately after being provided.  |
| [isValid](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/drawresults/isvalid.md)                           | Get if the draw results are valid i.e. they contain any data at all.                                                                                                                                                                                                                                                                                                                                 |
| [lineArray](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/drawresults/linearray.md)                       | Retrieve the Line Elements. Any new [PhysicsWorld](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld.md) drawing will invalidate this data so referring to this data afterwards may cause an unavoidable crash! You must immediately extract what information you need and not directly reference the returned data as it will be cleared immediately after being provided.             |
| [lineSpan](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/drawresults/linespan.md)                         | Retrieve the Line Elements. Any new [PhysicsWorld](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld.md) drawing will invalidate this data so referring to this data afterwards may cause an unavoidable crash! You must immediately extract what information you need and not directly reference the returned data as it will be cleared immediately after being provided.             |
| [pointArray](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/drawresults/pointarray.md)                     | Retrieve the Point Elements. Any new [PhysicsWorld](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld.md) drawing will invalidate this data so referring to this data afterwards may cause an unavoidable crash! You must immediately extract what information you need and not directly reference the returned data as it will be cleared immediately after being provided.            |
| [pointSpan](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/drawresults/pointspan.md)                       | Retrieve the Point Elements. Any new [PhysicsWorld](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld.md) drawing will invalidate this data so referring to this data afterwards may cause an unavoidable crash! You must immediately extract what information you need and not directly reference the returned data as it will be cleared immediately after being provided.            |
| [polygonGeometryArray](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/drawresults/polygongeometryarray.md) | Retrieve the Polygon Geometry Elements. Any new [PhysicsWorld](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld.md) drawing will invalidate this data so referring to this data afterwards may cause an unavoidable crash! You must immediately extract what information you need and not directly reference the returned data as it will be cleared immediately after being provided. |
| [polygonGeometrySpan](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/drawresults/polygongeometryspan.md)   | Retrieve the Polygon Geometry Elements. Any new [PhysicsWorld](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld.md) drawing will invalidate this data so referring to this data afterwards may cause an unavoidable crash! You must immediately extract what information you need and not directly reference the returned data as it will be cleared immediately after being provided. |

## Structs

| Struct                                                                                                                                                 | Description                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------- |
| [PhysicsWorld.DrawResults.CapsuleGeometryElement](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/drawresultscapsulegeometryelement.md) | A Capsule Geometry Element. |
| [PhysicsWorld.DrawResults.CircleGeometryElement](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/drawresultscirclegeometryelement.md)   | A Circle Geometry Element.  |
| [PhysicsWorld.DrawResults.LineElement](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/drawresultslineelement.md)                       | A Line Element.             |
| [PhysicsWorld.DrawResults.PointElement](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/drawresultspointelement.md)                     | A Point Element.            |
| [PhysicsWorld.DrawResults.PolygonGeometryElement](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/drawresultspolygongeometryelement.md) | A Polygon Geometry Element. |
