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.
Read time 3 minutesLast updated 12 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public readonly struct PhysicsWorld.DrawResults
Properties
Property | Description |
|---|---|
| capsuleGeometryArray | Retrieve the Capsule Geometry Element. Any new PhysicsWorld 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 | Retrieve the Capsule Geometry Elements. Any new PhysicsWorld 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 | Retrieve the Circle Geometry Elements. Any new PhysicsWorld 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 | Retrieve the Circle Geometry Elements. Any new PhysicsWorld 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 | Get if the draw results are valid i.e. they contain any data at all. |
| lineArray | Retrieve the Line Elements. Any new PhysicsWorld 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 | Retrieve the Line Elements. Any new PhysicsWorld 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 | Retrieve the Point Elements. Any new PhysicsWorld 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 | Retrieve the Point Elements. Any new PhysicsWorld 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 | Retrieve the Polygon Geometry Elements. Any new PhysicsWorld 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 | Retrieve the Polygon Geometry Elements. Any new PhysicsWorld 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 | A Capsule Geometry Element. |
| PhysicsWorld.DrawResults.CircleGeometryElement | A Circle Geometry Element. |
| PhysicsWorld.DrawResults.LineElement | A Line Element. |
| PhysicsWorld.DrawResults.PointElement | A Point Element. |
| PhysicsWorld.DrawResults.PolygonGeometryElement | A Polygon Geometry Element. |