Search Issue Tracker

Fixed in 2022.1.X

Votes

0

Found in

2019.4

2020.3

2020.3.11f1

2021.1

2021.2

2022.1

Issue ID

1347349

Regression

No

Cannot pass ModelInspector's type when calling Editor.CreateCachedEditor due to its protection level (internal)

IMGUI

-

How to reproduce:
1. Create a new project with the default 3D template
2. Create an empty script
3. Inherit the 'Editor' class
4. Write a call for 'Editor.CreateCachedEditor' with parameter 'typeof(ModelInspector)'
5. Inspect the Console window

Expected result: ModelInspector Editor can be used with CreateCachedEditor
Actual result: Class is internal and cannot be used with CreateCachedEditor

Reproducible with: 2019.4.29f1, 2020.3.16f1, 2021.1.17f1, 2021.2.0b7, 2022.1.0a5

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.