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

Settings

struct in Unity.U2D.Physics.Editor

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

The draw values the override uses, together with the selection of which of them apply.

Each value mirrors the draw property of the same name on PhysicsWorld and PhysicsWorldDefinition, and accepts the same range. Assign the whole struct to PhysicsDrawOverride.settings to apply a change.

Properties

Property Description
drawAtTransform Draws bodies at their Transform's pose rather than their simulated pose, in place of PhysicsWorld.drawAtTransform.
drawColors The colors used to draw bodies, shapes, joints and contacts, in place of PhysicsWorld.drawColors.
drawContactType Controls how contact points are drawn, in place of PhysicsWorld.drawContactType.
drawFillAlpha The interior fill alpha, in place of PhysicsWorld.drawFillAlpha.
drawFillOptions Controls how shape geometry is filled, in place of PhysicsWorld.drawFillOptions.
drawFilter Limits what gets drawn to a narrow selection, in place of PhysicsWorld.drawFilter.
drawForceScale The scale used when drawing contact forces, in place of PhysicsWorld.drawForceScale.
drawNormalScale The scale used when drawing contact normals, in place of PhysicsWorld.drawNormalScale.
drawOptions Limits what gets drawn to a broad selection, in place of PhysicsWorld.drawOptions.
drawPointScale The scale used when drawing points, in place of PhysicsWorld.drawPointScale.
drawTarget Controls which Editor views a world is drawn into, in place of PhysicsWorld.drawTarget.
drawThickness The outline and orientation thickness, in place of PhysicsWorld.drawThickness.
overrideOptions Selects which values the override replaces.