My goal is to help player detect hotspot and highlight them when player is near them.
I'd like to use the Hotspot vicinity to do that, but seems I'm not able to add the HotspotDetector (child of player) to the Player Settings.
I followed
this tutorial, without adding the cycle input, because I just want to highlight the hotspots (player will be able to interact with them with mouse), but seems I can't place the HotspotDetector in the Player Inspector. Seems that Player Inspector doesn't recognize the HotspotDetector game object.
I'm trying to implement this in a 2d scene, I tried both using a circle and a sphere collider.
Is the detection method on vicinity implemented for 2d? Can I use it just to highlight the hotspots?
Comments
Do you mean that you don't have the option to define the "Hotspot Detector child" in the Player Inspector, or that it won't accept the object when you drag it over?
A few things to consider:
The intended effect is for Hotspots within the collider to highlight and be interactive - those outside will not. As well as the highlight effect, you can also set Display Hotspot icon within the Settings Manager to Only When Highlighting - this will then show either an icon or texture over any "available" Hotspots.