Never get the enemy layer

Hi! I have a problem with melee. My enemy siting on the Enemy layer but when I click on enemy, I get back the walkable layer number only.


Somebody had a similar problem?

Hi aliashubert

Make sure that your enemy layer has a higher layer priority (lower number) than your walkable layer.
You can check/set this by checking your camera raycaster that’s a component of your camera.

Highlighted below

1 Like

Privacy & Terms