Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


drawTarget

Controls which Unity editor views this joint is drawn into.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
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 joint is included when it does. The state is not part of the joint definition and is never recorded, because it describes how the joint is being looked at rather than what it is. A player build has no Scene view, so a joint set to PhysicsWorld.DrawTarget.SceneView is never drawn in a build.