Skip to content

ComponentAreas

namespace Griff.Scenes;
public static class ComponentAreas

The areas of component types (see AreaAttribute), found the first time each type is asked about and kept for as long as it’s loaded. Reading them allocates nothing.

public static bool Has(Type type)

True if components of type cover an area of the world (see AreaAttribute).

public static Box? Of(Entity entity)

The part of the world entity covers: the area of the first of its components that has one (see AreaAttribute), or null for none.