Forum rules - please read before posting.

Hotspot Icon

Hello dears,

I noticed that under settings manager > hotspot settings > hotspot icon types, there is only an option for use icon but I can't specify for instance an icon for use and icon for examination to be displayed on a hotspot. is there a way around this?

Comments

  • The use/examine icon pairing can be drawn as the mouse-cursor when hovering over Hotspots via the Cursor Manager.

    To draw these icons indepentently when the Hotspot is highlighting, you'd have to rely on a custom script. Try this:

    using UnityEngine;
    using AC;
    
    public class DrawUseLookIcons : MonoBehaviour
    {
    
        public Hotspot hotspot;
        public float lookOffset = 0.05f;
    
        private void Update ()
        {
            float iconAlpha = hotspot.highlight.GetHighlightAlpha ();
            Vector2 offset = new Vector2 (Screen.width * lookOffset, 0f);
    
            if (iconAlpha > 0f)
            {
                if (!KickStarter.mainCamera.IsPointInCamera (hotspot.GetIconScreenPosition ()))
                {
                    return;
                }
    
                Color c = GUI.color;
                Color tempColor = c;
                c.a = iconAlpha;
                GUI.color = c;
    
                CursorIcon mainIcon = new CursorIcon ();
                mainIcon.Copy (KickStarter.cursorManager.GetCursorIconFromID (hotspot.useButtons[0].iconID), true);
                mainIcon.Draw (hotspot.GetIconScreenPosition () - offset, !KickStarter.playerMenus.IsMouseOverInteractionMenu ());
    
                CursorIcon lookIcon = new CursorIcon ();
                lookIcon.Copy (KickStarter.cursorManager.GetCursorIconFromID (hotspot.lookButton.iconID), true);
                lookIcon.Draw (hotspot.GetIconScreenPosition () + offset, !KickStarter.playerMenus.IsMouseOverInteractionMenu ());
    
                GUI.color = tempColor;
            }
        }
    
    }
    
  • edited October 2023

    edit: found it! please ignore. is in the Cursor settings tab at the bottom

    How do I change the icon for the "examine interaction"? It defaults to the lens icon but there no select icon drop down menu like

  • edited October 2023

    AC Game Editor -> Cursor -> Scroll down to Interaction Icons

    You can also add and delete new Icons you want there and change additional settings.
    Also Manual p. 237.

  • yes thank you!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.