getting a list of actors from the database in the editor
Posted: Mon Feb 11, 2019 6:34 pm
I'd like to make a custom editor with a dropdown list composed of all of the actors in my main database.
I've tried this, but trying to access MasterDatabase (and masterDatabase) results in a null reference exception:
Is there a way to access the actors in the masterDatabase in the editor? Thanks!
I've tried this, but trying to access MasterDatabase (and masterDatabase) results in a null reference exception:
Code: Select all
public override void OnInspectorGUI()
{
var test = PixelCrushers.DialogueSystem.DialogueManager.MasterDatabase.actors;
}