Search Issue Tracker
Fixed
Fixed in 6.0.5
Votes
0
Found in [Package]
6.0.2
Issue ID
PBLD-158
Regression
Yes
“error CS0118: 'Editor' is a namespace but is used like a type“ error is thrown when using UnityEditor.Editor for a custom inspector
Reproduction steps:
1. Open the “ReproProject“ project
2. Observe the Console window
Expected result: No errors thrown in the Console window
Actual result: “error CS0118: 'Editor' is a namespace but is used like a type“ error is thrown in the Console window
Reproducible with: 6.0.2 (6000.0.16f1)
Not reproducible with: 6.0.1 (6000.0.16f1)
Reproducible on: Windows 11 Pro (22H2)
Not reproducible on: No other environment tested
Note:
Individual packages should not use general naming for its namespace. In this case, ProBuilder uses "Editor" to its namespace so it conflicts with Unity's Editor type
Comments (1)
-
danosono
May 20, 2025 11:38
This also appears to be happening with the following assets:
Assets\Overlay Filters\Scripts\Editor\UnscaledTimeEditor.cs(7,35): error CS0118: 'Editor' is a namespace but is used like a type
https://assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/overlay-filters-2d-layered-post-processing-shaders-195806Assets\Sprite Shaders Ultimate\Scripts\Editor\ImageSSUEditor.cs(13,35): error CS0118: 'Editor' is a namespace but is used like a type
Assets\Sprite Shaders Ultimate\Scripts\Editor\ShaderFaderSSUEditor.cs(14,41): error CS0118: 'Editor' is a namespace but is used like a type
Assets\Sprite Shaders Ultimate\Scripts\Editor\MaterialInstancerSSUEditor.cs(13,47): error CS0118: 'Editor' is a namespace but is used like a type
Assets\Sprite Shaders Ultimate\Scripts\Editor\SpriteSheetSSUEditor.cs(13,41): error CS0118: 'Editor' is a namespace but is used like a type
Assets\Sprite Shaders Ultimate\Scripts\Editor\UnscaledTimeSSUEditor.cs(12,42): error CS0118: 'Editor' is a namespace but is used like a type
Assets\Sprite Shaders Ultimate\Scripts\Interactive\Editor\InteractiveWindSSUEditor.cs(9,45): error CS0118: 'Editor' is a namespace but is used like a type
Assets\Sprite Shaders Ultimate\Scripts\Interactive\Editor\WindManagerSSUEditor.cs(9,41): error CS0118: 'Editor' is a namespace but is used like a type
Assets\Sprite Shaders Ultimate\Scripts\Interactive\Editor\WindParallaxSSUEditor.cs(9,42): error CS0118: 'Editor' is a namespace but is used like a type
https://assetstore.unity.com/packages/vfx/shaders/sprite-shaders-ultimate-158988Assets\ThirdParty\EfficientUI\Editor\EfficientUISettings.cs(153,46): error CS0118: 'Editor' is a namespace but is used like a type
https://assetstore.unity.com/packages/tools/gui/efficient-ui-optimize-overdraw-and-raycasts-313349
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
Resolution Note (fix version 6.0.5):
Fixed a bug where ProBuilder would prevent classes inheriting from `UnityEditor.Editor` to compile.