[SOLVED]OnConversationResponseMenu but AFTER :)

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Evgeny
Posts: 16
Joined: Sun Mar 13, 2016 11:18 am

[SOLVED]OnConversationResponseMenu but AFTER :)

Post 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? :)
Last edited by Evgeny on Sun Mar 13, 2016 12:12 pm, edited 1 time in total.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: OnConversationResponseMenu but AFTER :)

Post 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)
}
Evgeny
Posts: 16
Joined: Sun Mar 13, 2016 11:18 am

Re: [SOLVED]OnConversationResponseMenu but AFTER :)

Post by Evgeny »

Thnx! :)
Post Reply