Unity - Scripting API: PhysicsVisualizationSettings

class in UnityEditor

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

This class contains the settings controlling the Physics Debug Visualization.

Static Properties

articulationBodyColorColor for Articulation Bodies.
baseAlphaAlpha amount used for transparency blending.
colorVarianceUsed to disinguish neighboring Colliders.
devOptionsShows extra options used to develop and debug the physics visualization.
dirtyCountDirty marker used for refreshing the GUI.
enableMouseSelectEnables the mouse-over highlighting and mouse selection modes.
forceOverdrawForcing the drawing of Colliders on top of any other geometry, regardless of depth.
kinematicColorColor for kinematic Rigidbodies.
rigidbodyColorColor for Rigidbodies, primarily active ones.
showCollisionGeometryShould the PhysicsDebugWindow display the collision geometry.
sleepingBodyColorColor for Rigidbodies that are controlled by the physics simulator, but are not currently being simulated.
staticColorColor for Colliders that do not have a Rigidbody component.
terrainTilesMaxMaximum number of mesh tiles available to draw all Terrain Colliders.
triggerColorColor for Colliders that are Triggers.
useSceneCamControls whether the SceneView or the GameView camera is used. Not shown in the UI.
viewDistanceColliders within this distance will be displayed.