Forum rules - please read before posting.

Wrong icon ID returned by PlayerInteraction.GetActiveUseButtonIconID() ?

I have set my interaction method to cycling cursor and clicking hotspot and I have two use interactions on a hotspot. When I disable the first one [id: 2 / look at] and enable the second one [id:0 / use] (which was initially disabled) then when I hover the mouse over the hotspot expecting the use icon to appear, I can notice the [id: 1 / talk to] icon appearing momentarily.

I have tracked the issue to the PlayerInteraction.GetActiveUseButtonIconID() line 2042:

                                                                interactionIndex = GetActiveHotspot ().FindFirstEnabledInteraction ();
                                                                return interactionIndex;

This returns 1 which is the interaction index but if I do:

                                interactionIndex = GetActiveHotspot ().FindFirstEnabledInteraction ();
                                return GetActiveHotspot ().useButtons [interactionIndex].iconID;

I get 0 which is the icon id of the second interaction, which is the correct one.

Isn't this a bug?

I am using Unity 6.2 (6000.2.10f1) and Adventure Creator 1.85.5

Comments

  • I'll need to look into this carefully but at first glance, it does indeed look like a bug. Thanks for pointing it out!

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.