Search Issue Tracker

By Design

Votes

0

Found in

2018.1.0b12

Issue ID

1020067

Regression

Yes

InspectorWindow is inaccessible due to its protection level when used in script

Scripting

-

Reproduction steps:
1. Download "OnPostHeaderGUIBug.zip" project and open in Unity

Expected: no errors appear in the console
Actual: errors appear in the console

Reproduced on: 2018.1.0b12; 2018.1.0b13; 2018.2.0a7
Not reproduced on: 2018.1.0b9; 2018.1.0b11

Note: errors:
1) "Assets/Scripts/Editor/MyCustomEditorWindowUI.cs(11,3): error CS0122: `UnityEditor.InspectorWindow' is inaccessible due to its protection level"
2) "Assets/Scripts/Editor/MyCustomEditorWindowUI.cs(11,19): error CS0117: `UnityEditor.InspectorWindow' does not contain a definition for `OnPostHeaderGUI'"

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.