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

PhysicsWorld.disableDrawOverride

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

Description

Controls whether this world ignores the Editor draw override and always draws with its own draw settings. The Editor draw override lets a user replace the draw settings of every world from the Editor preferences, without changing any world or project setting. Set this to true for a world whose drawing must never change that way, such as a world that exists only to draw editor tooling. This is not part of the world definition, so writing a definition to the world leaves it unchanged. It has no effect in a player, where there is no override.