Hello! I'm currently working on a 2d game, and I'm trying to have the hotspot display different icons depending on which type of action the player can engage on (examine, talk to or pick up), but I can't get it to display different icons. I've tried finding an answer in the forum but it still won't work. My settings are displaying hotspots on player vicinity and movement method as direct, with context sensitive interaction. I've tried working with the hotspot menu with this hotspot menu settings, this interaction element and this graphic element, but that way there's only one icon. The only way I get multiple icons is with the cursor, but I want the icon to be displayed over the interactable hotspot (I've been using a hotspot center override for that). Any way I could make it work? I'm thinking of changing the input method to point and click but I'd still like the icon to appear on player vicinity on the hotspot center override I gave to each interactable object.
Also, the icon's are animated, I don't know if that makes a difference
Ps: I followed this instructions and it still wouldn't work.
Thank you!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Thanks for the details.
The steps you've taken are correct - but it looks like a bug in the recent AC version is preventing the icon from showing correctly. I've recreated the issue on my end and will provide a fix in the upcoming v1.82 release.
In the mean time I'm trying to get back to the displaying on cursor type, since I'll probably end up using point and click navigation, but I'm running into another problem, when I hover the mouse on the hotspot it flickers.
My settings are:
Hotspot settings
Cursor manager
Interaction Menu
Interaction menu interaction elements
Hotspot Menu
I've been trying to undo all the steps I took trying to display different icons on hotspots, but I think I might be missing a few steps.
Sorry, what flickers? The cursor, or the Hotspot icon, or the Menu?
The wrong-icon-showing issue will be fixed in v1.82, which is due to be out this month. If this is the issue you're trying to workaround, I'd recommend waiting for the update.
The cursor icon, but after closing and reopening the project it stopped flickering. Thank you for the response though! I'll be waiting for the update
Hey Chris, sorry to bother you, but I've run into some problems and I'm not sure how to fix it. I was trying to go back to the direct movement and hotspot displaying on player vicinity, but the hotspots don't show up (I'm using a single icon, not multiple anymore). I've been trying to get to the same settings as at the beginning to this post, but I must be doing something else wrong.
Here are all my hotspot menu and elements settings in the menu manager, as well as cursor manager, cursor, interface and hotspot settings, and also a screenshot because when selecting the hotspot menu I can see the icon in the middle of the screen, I don't know if that helps.
When you say the hotspots don't show up - do you mean they aren't being selected / can't be interacted with, or just that the icon doesn't show?
Your screenshots show two methods of showing an icon - one in the Settings Manager's "Hotspot" panel, and the other in the "Hotspot" menu itself. Which is the one you're having issue with, or are both having issues?
For the one set by the Settings Manager, your Hotspots will need to have a "Highlight" component assigned - this can be attached to the Hotspot itself. Can you show a screenshot of a typical Hotspot?
The hotspot icon doesn't show up, but the hotspot is still interactable. This is a NPC's hotspot. The way I used to have it work I didn't have a highlight texture on the hotspot, I think the hotspot menu used to read the cursor icons. I guess I'm having problems with both, since neither one is showing the icons.
What's the exact icon you're trying to show? The Hotspot's Use interaction icon?
Try adding a Highlight component to the Hotspot, and assign it in its Inspector.
I'm trying to display the Hotspot's Use interaction icon. Sorry, I don't quite understand how to assign the highlight component. I added the highlight component to the NPC idle (which has the hotspot). Wasn't there a way to do it without the highlight component? When I got it working the first time I didn't use that component.
Thank you for everything! A friend helped me so now it works, I'll be waiting for the update to display different icons
It's out!
I'm sorry, but it still won't work, it only displays one icon. Can it have something to do with the Canvas UI of the icon?, because it only displays whatever source Image I add on the source image slot on the Image UI. And I was thinking that probably it only displays that source image because it doesn't have anywhere else to grab a source image from? Idk.
Here is my Hotspot Icon Menu with interaction element, and my Canvas UI Inspector and Image UI inspector.
There's nothing assigned in the element's "Linked Button" field. Even though you're dealing with an Image only, an Interaction element needs to link to a UI Button. You can configure its appearance to remain unchanged when interacted with, however.
Add a Button to your UI Image, and link it to the Element in the Menu Manager - you should find it then records the Constant ID value.
I added the button to the image UI, leaving everything as is, and the interaction element records the constant ID but it still only shows one icon.
Here are the Image UI inspector and the Hotspot Icon menu with the interaction element
I have fixed a related issue in v1.82.1 - give it a try and see if this is now resolved.
It worked!!! Thank you, I updated to v1.82.1 and now it changes icons!