Dear Ben,
I guest I missed something in the code but if I want to return the layer (Walkable, Enemy, RaycastEndStop) whenever I left click mouse, shouldn´t be better to use “if (Input.GetMouseButtonDown(0)) {…” , otherwise it is returning me the name of the layer every frame instead of doing this where I left click my mouse.
Could you help me to get the same behaviour than you got without using Input.GetMouseButtonDown(0)? . I have the same code in my script and the other scripts Utility and Cursor as well and there´s no way to return the layer ONLY when I left click my mouse which is what I´m seeing you do in the video.
Don´t know if it has to be with the version of Unity, I´m using 5.6 but I don´t think so.
Regards,
Jero.