grid-sensor icon indicating copy to clipboard operation
grid-sensor copied to clipboard

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

Open simon13372 opened this issue 2 years ago • 1 comments

(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!

simon13372 avatar Jan 19 '23 07:01 simon13372

Thanks for pointing this out - glad to hear there was an easy fix.

mbaske avatar Jan 25 '23 18:01 mbaske