This version of Unity is unsupported.

Physics2D.AllLayers

public static int AllLayers;

Description

Layer mask constant that includes all layers.

Additional resources: DefaultRaycastLayers, IgnoreRaycastLayer.