Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

PhysicsCoreSettings2D.alwaysDrawWorlds

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 alwaysDrawWorlds;

Description

Controls if worlds are always drawn independent of whether rendering is currently active or not as specified by PhysicsWorld.renderingMode. When true, world drawing is always active and a PhysicsEvents.WorldDrawResults event is produced containing the DrawResults. When false, world drawing only occurs depending on the PhysicsWorld.renderingMode setting.

CAUTION: Drawing the world has a performance cost associated with it therefore when using this without rendering, that cost can become hidden.