Hey Chris,
I've been unable to work on my game for the past six months, but finally found some time to get back to it last night. I didn't update either AC (1.81.2) nor Unity (2022.3.22f1). One thing that I soon noticed - and that I hadn't noticed before, so it must have changed long after I created that scene, because I'm very sure I tested and retested it several times - is that some of my hotspots were smaller than the size of their colliders (and some others couldn't be clicked at all!) As I was troubleshooting this, I realised it was because they were overlapping with a Trigger's collider, which again I'm very sure didn't happen before. I moved the Trigger collider's Z coordinate back a bit, and suddenly the hotsposts started working again.
My question is: is this behaviour expected? And if it is, then I'm assuming it's best practice to always change the Z coordinate of the triggers? I'm only asking because I'm fairly sure it didn't use to be an issue.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
What Layer are the Triggers on? Mouse clicks on Hotspots will be blocked if a Collider on the Default layer - Trigger or not - is in the way.
Adjusting the Z-position so that it's behind the Hotspot will get around this, but the cleanest way is to place it on Ignore Raycast if it can be.
Cheers, yeah, I thought I'd checked the layers, but it turns one of my triggers was on Default. Changing it to be on Ignore Raycast like the others fixed this.