|
tree.AddAllAssetsAtPath(selectedType.Name, "Assets/", selectedType, true, true); |
Error when first opening the menu via 'Tools'. A simple null check resolved the issue (I additionally added a sort call as that's likely a default desire):
if (selectedType != null)
{
tree.AddAllAssetsAtPath(selectedType.Name, "Assets/", selectedType, true, true);
tree.SortMenuItemsByName(true);
}
SirenixTutorialFiles/Data Manager/DataManager.cs
Line 30 in 8c1c96b
Error when first opening the menu via 'Tools'. A simple null check resolved the issue (I additionally added a sort call as that's likely a default desire):