예제 #1
0
        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();
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
        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);
                }
            }
        }