Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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 PhysicsCoreSettings2D.renderingMode.
Read time 1 minuteLast updated 7 days ago

Definition

public enum PhysicsWorld.DrawTarget

Fields

Value

Description

BothThe world is drawn in both the Scene view and the Game view.
GameViewThe world is drawn only in the Game view.
SceneViewThe 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.