public void Load(SceneView view) { view.ApplySettings(settings, overrides); if (overrides.Contains(Overrides.VisibleLayers)) { Tools.visibleLayers = visibleLayers; } if (overrides.Contains(Overrides.VisibleLayers)) { Tools.lockedLayers = lockedLayers; } postAction?.Invoke(); }
protected virtual void ProcessProperty(SerializedProperty property) { if (Ignores.Contains(property)) { return; } if (Overrides.Contains(property)) { Overrides.Draw(property); } else if (Disabled.Contains(property)) { DrawDisabled(property); } else { DrawDefault(property); } }
private static void LoadOverrides() { var proxyOverride = (string)_proxyKey.GetValue("ProxyOverride"); if (string.IsNullOrWhiteSpace(proxyOverride)) { return; } string[] overrides = proxyOverride.Split(';'); foreach (string @override in overrides) { if (@override == "<local>") { IsIgnoringLocalTraffic = true; } else if (!Overrides.Contains(@override)) { Overrides.Add(@override); } } }