Forum rules - please read before posting.

Faking a click on hotspot

edited June 2016 in Technical Q&A
How can I fake a click on hotspot through script? Is there a way to simulate a click/use of hotspot with script if you have access to the hotspot component? Right now the click on hotspot opens the interaction options menu on pointer position. I'd like the same sequence of actions to be called from script.

Edit: I sort of managed to get the functionality by setting an active hotspot and calling KickStarter.playerMenus.SetInteractionMenus(true). But to set an active hotspot i had to add a method to playerInteractions class. So, Chris could you add a SetActiveHotspot method to an official release?

Comments

  • edited June 2016
    I'll consider something.  It may be that optional parameters to override the active Hotspot are added to the SetInteractionMenus function instead - that would cause less knock-on issues.
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.