# drawTarget

> Controls which Unity editor views this body is drawn into.

## Definition

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

```csharp
public PhysicsWorld.DrawTarget drawTarget { get; set; }
```

### Remarks

This filters on top of the world's own \_drawTarget: the world decides whether it draws into a view at all, and this decides whether this body is included when it does. The state is not part of the body definition and is never recorded, because it describes how the body is being looked at rather than what it is. A player build has no Scene view, so a body set to [PhysicsWorld.DrawTarget.SceneView](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/drawtarget/sceneview.md) is never drawn in a build.
