Search Issue Tracker

Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.

Postponed

Votes

0

Found in

2018.4

2019.4

2020.3

2021.1

2021.1.3f1

2021.2

Issue ID

1335801

Regression

No

Disabled state of a MonoBehaviour is saved even when the Inspector checkbox is removed

Inspector Framework

-

Reproduction steps:
1. Open attached project "Enabled.zip" and scene "SampleScene"
2. In Hierarchy window, select "GameObject"
3. In Inspector window, disable the "Test (Script)" component
4. In Project window, open Assets/Test.cs
5. In Script Editor, comment out lines 12-15
6. Enter Play Mode
7. Observe Console window and the GameObject's script component

Expected result: The script component is enabled
Actual result: The script component is disabled. No indication of it on the script component because the checkbox is missing.

Reproducible with: 2018.4.35f1, 2019.4.27f1, 2020.3.11f1, 2021.1.9f1, 2021.2.0a18

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.