Page 1 of 1

Usage of Scene Event in Dialogue System Converstion

Posted: Sun Nov 01, 2020 3:20 pm
by zeroxpy
Regarding to using "scene event" in Conversation, I have the following question. Can you help me?

1. Is it possible to use static method in "scene event"? I tried to add a static method but I can't find my it in the dropdown menu.
2. In what condition would you recommend using "Scene-independent event" instead? Can you give an example?

Thank you!

Re: Usage of Scene Event in Dialogue System Converstion

Posted: Sun Nov 01, 2020 4:19 pm
by Tony Li
Hi,
zeroxpy wrote: Sun Nov 01, 2020 3:20 pm1. Is it possible to use static method in "scene event"? I tried to add a static method but I can't find my it in the dropdown menu.
No. A scene event is a regular UnityEvent that works on a scene object, so it can't access static methods in the inspector.
zeroxpy wrote: Sun Nov 01, 2020 3:20 pm2. In what condition would you recommend using "Scene-independent event" instead? Can you give an example?
There's one here: Scene-Independent Event Example

Re: Usage of Scene Event in Dialogue System Converstion

Posted: Sun Nov 01, 2020 4:25 pm
by zeroxpy
Hi Tony. Many thanks.

Re: Usage of Scene Event in Dialogue System Converstion

Posted: Sun Nov 01, 2020 4:28 pm
by Tony Li
Glad to help!