Skip to content

CollisionLayers

namespace Griff.Scenes;
public static class CollisionLayers

Matching collision layer names: case doesn’t matter, and an empty layer is called “Default”.

public static bool Contains(IEnumerable<string> layers, string? layer)

True if layer is one of layers.

public static string NameOf(string? layer)

The layer’s name, with empty meaning Default.

public static string[] Parse(string? list)

Reads a list of layer names like “Bullet, Enemy” (commas or semicolons between them).

Read once for the same string (see Names), shared: don’t change the array.

public const string Default