Component > Pixel Crushers > Dialogue System > Misc > Extra Databases
Adds and removes extra databases in the runtime environment.
Property | Function |
---|---|
Add Trigger | The triggering event that causes this component to add (load) databases to the runtime environment. |
Remove Trigger | The triggering event that causes this component to remove (unload) databases from the runtime environment. |
Databases | The list of databases to add and remove. |
Condition | The condition that must be true for the add and remove triggers to fire. |
Once | As soon as one event (add or remove) has occurred, destroy this component. |
One Per Frame | Add/remove one database per frame instead of adding them all at the same time. Useful to avoid stutter when adding several large databases. |
The Dialogue Manager only loads its Initial Database at start. If you use multiple databases, you must load them before use. You can use this component to automatically load and unload extra databases. To prevent stutter if loading several large databases, tick the One Per Frame checkbox to add one database per frame; in this case it may take several frames to add the databases.
You can assign your own methods to the static events ExtraDatabases.addedDatabases and/or ExtraDatabases.removedDatabases to be notified when databases have been added or removed. Example: