Skip to content

Detectable objects with equal tags but on differing layers are not detected by GridSensor #17

Description

@simon13372

(except for objects on the same layer as the prefab that was dragged to the "Add detectable object" field in the Inspector)
A quick hack in GameObjectDetector solved the issue for me:

public GameObjectSettingsMeta Settings
{
set
{
m_Settings = value;
m_LayerMask = value.LayerMask | 1 << 7; //Need to detect objects on layer 7 too
}
}

Anyway, thank you SO much for your splendid work, it's been of great use!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions