Skip to content

Consider Having LayerMasker.Layers Take a StartingLayer Field #125

@Chris3606

Description

@Chris3606

Currently, the LayerMasker only takes a number of layers, not a starting layer. This means that, if you pass uint.MaxValue to LayerMasker.Layers(), it will return layers below a minimum layer, if you are using one.

LayeredSpatialMap gets around this by using a couple layer maskers and also doing bit-shifts on values incoming. However, a simple mask >> startingLayer << startingLayer would remove them entirely from the mask.

In order to gain more intuitive behavior, it may be useful to have LayerMasker implement support for a starting (minimum) layer specifically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions