{"record":{"id":"dbc103adf01445f0","repo":"Unity-Technologies/UnityCsReference","slug":"expandedprojectwindowitems-is-deprecated-use-expa","errorCode":null,"errorMessage":"expandedProjectWindowItems is deprecated. Use expandedProjectWindowItemIds instead","messagePattern":"expandedProjectWindowItems is deprecated\\. Use expandedProjectWindowItemIds instead","errorType":"exception","errorClass":"NotSupportedException","httpStatus":null,"severity":"error","filePath":"Editor/Mono/InternalEditorUtility.bindings.cs","lineNumber":528,"sourceCode":"        [StaticAccessor(\"GetApplication()\", StaticAccessorType.Dot)]\n        extern internal static bool IsSwitchSkinRequested();\n\n        [StaticAccessor(\"GetApplication()\", StaticAccessorType.Dot)]\n        [NativeMethod(\"RequestRepaintAllViews\")]\n        extern public static void RepaintAllViews();\n\n        [StaticAccessor(\"GetInspectorExpandedState()\", StaticAccessorType.Dot)]\n        [NativeMethod(\"IsInspectorExpanded\")]\n        extern public static bool GetIsInspectorExpanded(Object obj);\n\n        [StaticAccessor(\"GetInspectorExpandedState()\", StaticAccessorType.Dot)]\n        [NativeMethod(\"SetInspectorExpanded\")]\n        extern public static void SetIsInspectorExpanded(Object obj, bool isExpanded);\n\n        [Obsolete(\"expandedProjectWindowItems is deprecated. Use expandedProjectWindowItemIds instead\", true)]\n        public static int[] expandedProjectWindowItems\n        {\n            get { throw new NotSupportedException(\"expandedProjectWindowItems is deprecated. Use expandedProjectWindowItemIds instead\"); }\n            set { throw new NotSupportedException(\"expandedProjectWindowItems is deprecated. Use expandedProjectWindowItemIds instead\"); }\n        }\n\n        extern public static EntityId[] expandedProjectWindowItemIds\n        {\n            [StaticAccessor(\"AssetDatabase::GetProjectWindowHierarchyState()\", StaticAccessorType.Dot)]\n            [NativeMethod(\"GetExpandedArray\")]\n            get;\n            [FreeFunction(\"InternalEditorUtilityBindings::SetExpandedProjectWindowItemIds\")]\n            set;\n        }\n\n        [Obsolete(\"LoadAssemblyWrapper is no longer supported and will be removed.\", error: false)]\n        public static Assembly LoadAssemblyWrapper(string dllName, string dllLocation)\n        {\n            return CurrentAssemblies.LoadFromPath(dllLocation);\n        }\n","sourceCodeStart":510,"sourceCodeEnd":546,"githubUrl":"https://github.com/Unity-Technologies/UnityCsReference/blob/225b0fbdb57cc17d094e8056b71f8314aba56f73/Editor/Mono/InternalEditorUtility.bindings.cs#L510-L546","documentation":"The expandedProjectWindowItems property is marked Obsolete(error:true) and its getters/setters throw NotSupportedException. Unity removed this API in favor of expandedProjectWindowItemIds (EntityId[]). Any code still touching the old property throws immediately.","triggerScenarios":"Code compiled against an older Unity editor API that reads or writes InternalEditorUtility.expandedProjectWindowItems. Reflection-based tooling that enumerates and invokes public properties. Third-party editor extensions built for an earlier Unity version.","commonSituations":"Upgrading a project to a Unity version where this API was removed, without recompiling affected editor packages. A custom Project window extension or asset browser plugin that cached the old property.","solutions":["Replace all usages of expandedProjectWindowItems with expandedProjectWindowItemIds, treating the elements as EntityId.","Recompile and update any third-party editor extensions to a version targeting the current Unity major version.","Search the codebase for 'expandedProjectWindowItems' and remove/refactor each reference."],"exampleFix":"// before\nvar expanded = InternalEditorUtility.expandedProjectWindowItems;\n\n// after\nEntityId[] expanded = InternalEditorUtility.expandedProjectWindowItemIds;","handlingStrategy":"validation","validationCode":"// Use the replacement API directly; never reference the obsolete property.\nUnityEditorInternal.InternalEditorUtility.expandedProjectWindowItemIds.ToString();","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Treat Obsolete(error:true) APIs as compile-time removals","Search and replace all references during Unity upgrades","Pin editor extensions to compatible Unity versions"],"tags":["unity","editor","deprecated","obsolete-api","project-window"],"backgroundTag":null,"analyzedSha":"225b0fbdb57cc17d094e8056b71f8314aba56f73","analyzedAt":"2026-08-13T19:07:19.849Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}