Forum rules - please read before posting.

document close event.

edited December 2020 in Technical Q&A

Unity Version: 2020.2.0f1
AC Version: 1.72.4

I want to set a variable when the player closes the document after opening it.

So I set the 'wait until close' option for the Document:Open action.

However, after opening document, the game becomes unresponsive and the document cannot be closed.

If I turn off the 'wait until close' option, game will run normally.

What if I want to fire an event when the document is closed?

Comments

  • The ActionList will continue to run while the Document is open. So if its When running field is set to Block Gameplay, then gameplay will be blocked while it waits for the Document to close.

    Set this to Run In Background to allow user interaction during this time - or make sure your Document menu has Clickable in cutscenes? checked.

    Alternatively, you can assign an ActionList in the menu's ActionList when turn off field, which will be run whenever the menu is closed.

  • Thanks for your advise.
    I solved by check option 'Pause game when enabled' from Document setting of Menu.

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.