Search Issue Tracker

Fixed in 2018.3.X

Votes

0

Found in

2018.2.3f1

Issue ID

1070400

Regression

No

An error is shown in the Inspector when a class is inside a namespace and there isn't a whitespace after the name of the class

Scripting

-

Repro steps:
1. Open QA attached project "repro_1070400"
2. Select script "TestScript" in the Project Window
3. Observe the Inspector
4. Select script "TestScript2" in the Project Window
5. Observe the Inspector and notice the error

Expected: No errors are shown in the Inspector with both scripts
Actual: The script "TestScript2" produces an error: "No MonoBehavior scripts in the file, or their names do not match the file name"

Reproducible with: 2017.4.9f1, 2018.1.9f1, 2018.2.4f1, 2018.3.0a9

Notes:
- The only difference between the two scripts is the whitespace after the class name

Fixed in: 2018.3.0a9

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.