# PhysicsWorld.DrawTarget

> Controls which Unity editor views a PhysicsWorld is drawn into. This only filters the built-in viewport rendering and does not control whether drawing occurs at all, which is governed by PhysicsWorld.DrawOptions and _renderingMode.

## Definition

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

```csharp
public enum PhysicsWorld.DrawTarget
```

## Fields

| Value                                                                                               | Description                                                                                                                               |
| --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| [Both](/engine/6000.6/script-reference/unity/u2d/physics/physicsworld/drawtarget/both.md)           | The world is drawn in both the Scene view and the Game view.                                                                              |
| [GameView](/engine/6000.6/script-reference/unity/u2d/physics/physicsworld/drawtarget/gameview.md)   | The world is drawn only in the Game view.                                                                                                 |
| [SceneView](/engine/6000.6/script-reference/unity/u2d/physics/physicsworld/drawtarget/sceneview.md) | The world is drawn only in the Scene view. A player build has no Scene view, so selecting this means the world is never drawn in a build. |
