Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

DrawOptions

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Draw Options used to control what is drawn using LowLevelPhysics2D.PhysicsWorld.Draw. Debug Drawing is only available on devices that support Compute Shaders.

Properties

Property Description
Off No drawing.
SelectedBodies Draw the selected bodies.
SelectedShapes Draw the selected shapes.
SelectedShapeBounds Draw the selected shape bounds.
SelectedJoints Draw the selected joints.
AllBodies Draw all bodies in the world.
AllShapes Draw all the shapes in the world.
AllShapeBounds Draw all the shape bounds in the world.
AllJoints Draw all the joints in the world.
AllContactPoints Draw all the contact points in the world.
AllContactNormal Draw all the contact normals in the world.
AllContactImpulse Draw all the contact impulses in the world.
AllContactFriction Draw all the contact friction (tangent) in the world.
AllCustom Draw all the custom drawing.
AllSolverIslands Draw all the solver islands in the world.
DefaultAll The default drawing when drawing all. Draw all the shapes, joints and custom drawing in the world.
DefaultSelected The default drawing when drawing selections. Draw selected shapes, joints and custom drawing in the world.