I wasn’t able to get the Raycasting to work. Nothing gets printed to the console. I’m using the FreeLookCameraRig and tried placing the scripts on FreeLookCameraRig, Pivot, and the Main Camera. Enemy is on layer 9, walkable is on layer 19, and the Utility script reads:
public enum Layer
{
Walkable = 19,
Enemy = 9,
RaycastEndStop = -1
}
I have the Invector Melee Combat Template in my project which preset many layers. Enemy was already on 9, and then I set 19. I would think it shouldn’t matter which layer. Anyone else have an issue with this, or anything else to try?