- changed status to resolved
Crash if the returned values in ValueDropdown contains null
Issue #259
resolved
[SerializeField] [ValueDropdown("NamespaceDropdown")] private string Namespace; // object is nullable public string[] NamespaceDropdown() { return Assembly.GetExecutingAssembly().GetTypes() .Select(t => t.Namespace).Distinct() //.Skip(1) The first is null. .ToArray(); }
Comments (1)
-
- Log in to comment
Thanks! It's fixed.
Null values are now also selectable values in the drop-down.