기술 자료

Unity Engine

Unity Engine

drawTarget

Controls which Unity editor views this body is drawn into.
읽는 시간 1분최근 업데이트: 22일 전

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 PhysicsWorld.drawTarget: the world decides whether it draws into a view at all, and this decides whether this body is included when it does. A player build has no Scene view, so a body set to PhysicsWorld.DrawTarget.SceneView is never drawn in a build. See PhysicsBodyDefinition.drawTarget.