Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

PhysicsShape.selectedDrawing

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

public bool selectedDrawing;

Description

Controls whether this shape is drawn individually when the world is drawn.

The shape is only drawn when the world draw options include PhysicsWorld.DrawOptions.SelectedShapes or PhysicsWorld.DrawOptions.SelectedShapeBounds; changing the draw options never changes this state. The state persists until set to false, the shape is destroyed, or PhysicsWorld.ClearDrawSelected clears the whole world. The shape must also have PhysicsShape.worldDrawing enabled to be drawn.