I set a hotspot to ignore raycast which I think is the recommended way to disable it. The hotspot icon will not appear. The highlight for the linked object will still be done though, which is incorrect as the object should not react yet.
I think I found the reason. It is not possible to actually disable hotspots in the editor. Setting the layer to IgnoreRaycast is not enough. One has to set the private flag isOn as well to false. Why is that? The interaction cannot be triggered if the hotspot is on ignoreRaycast. Why execute the highlight then? I think the check for isOn should either go or the flag made public. Or am I misinterpreting the code?
I changed the isOn() method in hotspot.cs to my suggestion and that seems to solve the issue:
public bool IsOn ()
{
if (gameObject.layer == LayerMask.NameToLayer (KickStarter.settingsManager.deactivatedLayer))
Comments