[HOWTO] How To: Use Instantiated EventSystem

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

[HOWTO] How To: Use Instantiated EventSystem

Post by Tony Li »

Unity UI interaction requires an EventSystem GameObject.

By default, the Dialogue System will create an EventSystem at start if one isn't present in the scene. However, some games instantiate their own EventSystem at runtime. In this case, you don't want the Dialogue System to create an EventSystem. To tell the Dialogue System to not create an EventSystem:

1. Inspect your dialogue UI. UNtick Add EventSystem If Needed:

untickDialogueUIAddEventSystem.png
untickDialogueUIAddEventSystem.png (18.75 KiB) Viewed 3422 times

2. Inspect your quest log window. By default, the Dialogue Manager GameObject has an Instantiate Prefabs component that instantiates a quest log window:


instantiatePrefabsQuestLog.png
instantiatePrefabsQuestLog.png (32.1 KiB) Viewed 3422 times

If you don't plan to use a quest log window, or if you've already added an instance of your quest log window to the scene, you can remove it from the Instantiated Prefabs list.

Then UNtick the quest log window's Add EventSystem If Needed checkbox:

untickQuestLogAddEventSystem.png
untickQuestLogAddEventSystem.png (39.63 KiB) Viewed 3422 times
Post Reply