useVariedContactColors
Whether varied colors are used for PhysicsDebugWindow contact visualization.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Property
- Namespace: UnityEditor
- Assembly: UnityEditor
public static bool useVariedContactColors { get; set; }
Remarks
If you set this property to false, PhysicsVisualizationSettings.contactColor, PhysicsVisualizationSettings.contactImpulseColor, and PhysicsVisualizationSettings.contactSeparationColor properties are used to visualize contacts.
If you set this property to true, random colors are used to visualize contacts. The Collider instance ID is hashed into a color that is used for the arrow representing the contact normal. The separation is visualized by an inverse color and the impulse is black. Note that PhysicsDebugWindow does not take PhysicsVisualizationSettings.baseAlpha into account.