此类包含用于控制物理调试可视化的设置。
另请参阅:PhysicsDebugWindow。
articulationBodyColor | Color for Articulation Bodies. |
baseAlpha | 用于透明度混合的 Alpha 数量。 |
colorVariance | 用于区分相邻碰撞体。 |
devOptions | 显示用于开发和调试物理可视化的额外选项。 |
dirtyCount | 用于刷新 GUI 的“脏”标记。 |
enableMouseSelect | 启用鼠标悬停突出显示和鼠标选择模式。 |
forceOverdraw | 强制将碰撞体绘制在任何其他几何体之上(无论深度如何)。 |
kinematicColor | 运动刚体的颜色。 |
rigidbodyColor | 刚体(主要是活动刚体)的颜色。 |
showCollisionGeometry | PhysicsDebugWindow 是否应显示碰撞几何体。 |
sleepingBodyColor | 由物理模拟器控制但当前尚未模拟的刚体的颜色。 |
staticColor | 没有刚体组件的碰撞体的颜色。 |
terrainTilesMax | 可用于绘制所有地形碰撞体的最大网格瓦片数。 |
triggerColor | 作为触发器的碰撞体的颜色。 |
useSceneCam | 控制是否使用 SceneView 或 GameView 摄像机。未显示在 UI 中。 |
viewDistance | 将显示此距离内的碰撞体。 |
ClearMouseHighlight | 清除突出显示的碰撞体。 |
DeinitDebugDraw | 取消初始化物理调试可视化系统和跟踪碰撞体更改。 |
GetShowArticulationBodies | Should Articulation Bodies be shown by the Physics Visualizer. |
GetShowBoxColliders | 是否应显示 BoxCollider。 |
GetShowCapsuleColliders | 是否应显示 CapsuleCollider。 |
GetShowCollisionLayer | 显示过滤器是否应考虑给定层。 |
GetShowCollisionLayerMask | 显示过滤器是否应考虑用于表示层的遮罩。 |
GetShowKinematicBodies | 显示过滤器是否应考虑运动刚体。 |
GetShowMeshColliders | 是否应显示 MeshCollider。 |
GetShowPhysicsSceneMask | 返回表示显示过滤器启用的场景的遮罩。 |
GetShowRigidbodies | 显示过滤器是否应考虑任何刚体。 |
GetShowSleepingBodies | 显示过滤器是否应考虑睡眠刚体。 |
GetShowSphereColliders | 是否应显示 SphereCollider。 |
GetShowStaticColliders | 显示过滤器是否应考虑没有刚体组件的碰撞体。 |
GetShowTerrainColliders | 是否应显示 TerrainCollider。 |
GetShowTriggers | 显示过滤器是否应考虑触发器。 |
HasMouseHighlight | 如果当前突出显示了任何类型的物理对象,则返回 true。 |
InitDebugDraw | 初始化物理调试可视化系统。要可视化任何物理对象,必须初始化系统。系统通常由 PhysicsDebugWindow 初始化。 |
Reset | 将可视化选项重置为默认状态。 |
SetShowArticulationBodies | Should Articulation Bodies be shown by the Physics Visualizer. |
SetShowBoxColliders | 是否应显示 BoxCollider。 |
SetShowCapsuleColliders | 是否应显示 CapsuleCollider。 |
SetShowCollisionLayer | 显示过滤器是否应考虑给定层。 |
SetShowCollisionLayerMask | 显示过滤器是否应考虑用于表示层的遮罩。 |
SetShowForAllFilters | 启用或禁用所有过滤项。 |
SetShowKinematicBodies | 显示过滤器是否应考虑运动刚体。 |
SetShowMeshColliders | 是否应显示 MeshCollider。 |
SetShowPhysicsSceneMask | 显示过滤器是否应考虑场景遮罩。 |
SetShowRigidbodies | 显示过滤器是否应考虑任何刚体。 |
SetShowSleepingBodies | Should sleeping Rigidbodies and Articulation Bodies be considered by the display filter. |
SetShowSphereColliders | 是否应显示 SphereCollider。 |
SetShowStaticColliders | 显示过滤器是否应考虑没有刚体组件的碰撞体。 |
SetShowTerrainColliders | 是否应显示 TerrainCollider。 |
SetShowTriggers | 显示过滤器是否应考虑触发器。 |
UpdateMouseHighlight | 更新屏幕空间中给定鼠标位置上的鼠标悬停突出显示。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.