{"record":{"id":"633be8b406121f1a","repo":"Unity-Technologies/UnityCsReference","slug":"aa-is-not-supported-on-guiviews","errorCode":null,"errorMessage":"AA is not supported on GUIViews","messagePattern":"AA is not supported on GUIViews","errorType":"exception","errorClass":"NotSupportedException","httpStatus":null,"severity":"warning","filePath":"Editor/Mono/GUIView.cs","lineNumber":210,"sourceCode":"        }\n\n        public int depthBufferBits\n        {\n            get { return m_DepthBufferBits; }\n            set { m_DepthBufferBits = value; }\n        }\n\n        public int antiAliasing\n        {\n            get { return m_AntiAliasing; }\n            set { m_AntiAliasing = value; }\n        }\n\n        [Obsolete(\"AA is not supported on GUIViews\", false)]\n        public int antiAlias\n        {\n            get { return 1; }\n            set { throw new NotSupportedException(\"AA is not supported on GUIViews\"); }\n        }\n\n        public bool resetPanelRenderingOnAssetChange\n        {\n            get => m_ResetPanelRenderingOnAssetChange;\n            set\n            {\n                if (m_ResetPanelRenderingOnAssetChange != value)\n                {\n                    m_ResetPanelRenderingOnAssetChange = value;\n                    windowBackend?.ResetPanelRenderingOnAssetChangeChanged();\n                }\n            }\n        }\n\n        internal IWindowBackend windowBackend\n        {\n            get { return m_WindowBackend; }","sourceCodeStart":192,"sourceCodeEnd":228,"githubUrl":"https://github.com/Unity-Technologies/UnityCsReference/blob/225b0fbdb57cc17d094e8056b71f8314aba56f73/Editor/Mono/GUIView.cs#L192-L228","documentation":"GUIView.antiAlias is an obsolete property marked [Obsolete(..., false)] that always throws NotSupportedException on set because anti-aliasing is not supported on GUI views (the supported property is antiAliasing). The throw enforces the deprecation: any code still assigning antiAlias is rejected at runtime rather than silently ignored.","triggerScenarios":"Calling guiView.antiAlias = n from legacy editor code; referencing the old property name instead of antiAliasing; copying pre-upgrade sample code that sets antiAlias.","commonSituations":"Upgrading a project across a Unity version that renamed/obsoleted the property; third-party editor extension built against an older API; auto-generated or templated UI code.","solutions":["Replace all uses of antiAlias with antiAliasing.","Remove the assignment if anti-aliasing is not actually needed for the GUI view.","Compile with warnings-as-errors to catch [Obsolete] usage at build time."],"exampleFix":"// before\nview.antiAlias = 4;\n\n// after\nview.antiAliasing = 4;","handlingStrategy":"type-guard","validationCode":"// never assign the obsolete property; use the supported one\nview.antiAliasing = level;","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Treat [Obsolete] warnings as errors in editor-extension projects.","Use the property name antiAliasing, not antiAlias.","Update legacy samples when upgrading Unity."],"tags":["guiview","obsolete","deprecation","editor","argument"],"backgroundTag":null,"analyzedSha":"225b0fbdb57cc17d094e8056b71f8314aba56f73","analyzedAt":"2026-08-13T19:07:19.849Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}