public static List <TypeTreeNode> MonoBehaviourToTypeTreeNodes(MonoBehaviour m_MonoBehaviour) { if (!assemblyLoader.Loaded) { if (!string.IsNullOrEmpty(assemblyReferenceFolder)) { assemblyLoader.Load(assemblyReferenceFolder); } else { assemblyLoader.Loaded = true; } } return(m_MonoBehaviour.ConvertToTypeTreeNodes(assemblyLoader)); }
public static List <TypeTreeNode> MonoBehaviourToTypeTreeNodes(MonoBehaviour m_MonoBehaviour) { if (!assemblyLoader.Loaded) { var openFolderDialog = new OpenFolderDialog(); openFolderDialog.Title = "Select Assembly Folder"; if (openFolderDialog.ShowDialog() == DialogResult.OK) { assemblyLoader.Load(openFolderDialog.Folder); } else { assemblyLoader.Loaded = true; } } return(m_MonoBehaviour.ConvertToTypeTreeNodes(assemblyLoader)); }