Never get the enemy layer

rpg_s02_player_melee_damage

#1

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?


#2

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