[#13] poprawki i wyrzucenie predefiniowanych statusów
This commit is contained in:
@@ -134,7 +134,7 @@ public class ExampleCustomSettingsSO : CustomSettingsSO
|
||||
// Clicked foldout without settings attached - do nothing
|
||||
if (_settingsTypeMap[key] is not {} settingsType) return;
|
||||
|
||||
var settings = _mainSettings.settings.FirstOrDefault(s => s.GetType() == settingsType);
|
||||
var settings = _mainSettings.settings.FirstOrDefault(s => s && s.GetType() == settingsType);
|
||||
|
||||
_objectField.objectType = settingsType;
|
||||
_objectField.SetValueWithoutNotify(settings);
|
||||
|
||||
Reference in New Issue
Block a user