Version: 2018.2

PhysicsVisualizationSettings

class in UnityEditor

マニュアルに切り替える

説明

This class contains the settings controlling the Physics Debug Visualization.

関連項目: PhysicsDebugWindow.

Static 変数

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.
filterWorkflowSee FilterWorkflow.
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.

Static 関数

ClearMouseHighlightClears the highlighted Collider.
DeinitDebugDrawDeinitializes the physics debug visualization system and tracking of changes Colliders.
GetShowBoxCollidersShould BoxColliders be shown.
GetShowCapsuleCollidersShould CapsuleColliders be shown.
GetShowCollisionLayerShould the given layer for the given filterWorkflow be considered by the display filter.
GetShowCollisionLayerMaskShould the mask representing the layers for the given filterWorkflow be considered by the display filter.
GetShowKinematicBodiesShould the kinematic Rigidbodies for the given filterWorkflow be considered by the display filter.
GetShowMeshCollidersShould MeshColliders be shown.
GetShowRigidbodiesShould any Rigidbodies for the given filterWorkflow be considered by the display filter.
GetShowSleepingBodiesShould the sleeping Rigidbodies for the given filterWorkflow be considered by the display filter.
GetShowSphereCollidersShould SphereColliders be shown.
GetShowStaticCollidersShould the Colliders without a Rigidbody component be considered by the display filter for the given filterWorkflow.
GetShowTerrainCollidersShould TerrainColliders be shown.
GetShowTriggersShould the triggers for the given filterWorkflow be considered by the display filter.
HasMouseHighlightReturns true if there currently is any kind of physics object highlighted.
InitDebugDrawInitializes the physics debug visualization system. The system must be initialized for any physics objects to be visualized. It is normally initialized by the PhysicsDebugWindow.
ResetResets the visualization options to their default state.
SetShowBoxCollidersShould BoxColliders be shown.
SetShowCapsuleCollidersShould CapsuleColliders be shown.
SetShowCollisionLayerShould the given layer for the given filterWorkflow be considered by the display filter.
SetShowCollisionLayerMaskShould the mask representing the layers for the given filterWorkflow be considered by the display filter.
SetShowForAllFiltersEnables or disables all filtering items for the current filterWorkflow.
SetShowKinematicBodiesShould the kinematic Rigidbodies for the given filterWorkflow be considered by the display filter.
SetShowMeshCollidersShould MeshColliders be shown.
SetShowRigidbodiesShould any Rigidbodies for the given filterWorkflow be considered by the display filter.
SetShowSleepingBodiesShould the sleeping Rigidbodies for the given filterWorkflow be considered by the display filter.
SetShowSphereCollidersShould SphereColliders be shown.
SetShowStaticCollidersShould the Colliders without a Rigidbody component be considered by the display filter for the given filterWorkflow.
SetShowTerrainCollidersShould TerrainColliders be shown.
SetShowTriggersShould the triggers for the given filterWorkflow be considered by the display filter.
UpdateMouseHighlightUpdates the mouse-over highlight at the given mouse position in screen space.