Page 1 of 1

[SOLVED]OnConversationResponseMenu but AFTER :)

Posted: Sun Mar 13, 2016 11:27 am
by Evgeny
Hi!

OnConversationResponseMenu Sent before showing a response menu.

But I'm need event AFTER showing a response menu. For reposition NGUI table with buttons.

Any idea? :)

Re: OnConversationResponseMenu but AFTER :)

Posted: Sun Mar 13, 2016 11:58 am
by Tony Li
Hi,

You could start a coroutine:

Code: Select all

void OnConversationResponseMenu(Response[] responses) {
    StartCoroutine(RepositionTable());
}

IEnumerator RepositionTable() {
    yield return null; // First wait 1 frame for Dialogue System to build table.
    // (your reposition code here)
}

Re: [SOLVED]OnConversationResponseMenu but AFTER :)

Posted: Sun Mar 13, 2016 12:12 pm
by Evgeny
Thnx! :)