Cursor selection and easy edit with inspector

So I didnt like the way the cursors are being hard-coded in, so i’ve decided to take a different approach and wanted to share it with the community.
@ben, if you want to use this in the course (if it’s not too late), feel free to do so and modify however you like.

Basically, this allowes the designer to pick a cursor for any layer.
I took inspiration from the CameraRaycasterEditor.cs and modified where I needed it to work with cursors per layer…
It doesn’t look 100% imho in the inspector, but it suits its purpose.

Also for anyone else, feel free to use and modify.

sidenote: my event/delegate names in the CameraRaycaster is slightly different, make sure to update them to reflect your project

Thanks for this, we’re going to change things slightly in the next section, probably using Scriptable Object. Well done going off-piste.

Privacy & Terms