I only get hits for enemies, and when I use 1 << 8 I get a hit for the player, nothing from the Default layer.
LayerMask.GetMask(“Enemy”) and LayerMask.GetMask(“Player”) returns hits for Enemy and Player respectively, LayerMask.GetMask(“Default”) gives no returns.
You have no idea how much you helped me with this, it works perfectly!! Thank you so much man, I’ve been wasting almost all day to get this to work, and you solve it in a few minutes. I owe you one :).
Sorry, I misunderstood how to use it completely, I just assumed an int was all that’s needed since that’s what the description in Unity told me to use (when you hover over it):
ya… i won’t pretend the docs are the most user friendly. lol Often, the information is split between two places the Scripting API and (if it has one) its Manual counter part. The search bar is your friend in both hehehe (personal learning experience as reference hahaha)