Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetShowCollisionLayer

Should the given layer be considered by the display filter.
Read time 1 minuteLast updated 3 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

SetShowCollisionLayer(int, bool)

Should the given layer be considered by the display filter.
public static void SetShowCollisionLayer(int layer, bool show)

Parameters

layer


show

Remarks

Additional Resources: Layers.

SetShowCollisionLayer(FilterWorkflow, int, bool)

Should the given layer be considered by the display filter.
Warning
Removed. Enum PhysicsVisualizationSettings.FilterWorkflow has been deprecated. Use APIs without this argument instead
public static void SetShowCollisionLayer(PhysicsVisualizationSettings.FilterWorkflow filterWorkflow, int layer, bool show)

Parameters

filterWorkflow


layer


show

Remarks

Additional Resources: Layers.