Unity Issue Tracker - MonoBehaviour script component is missing the enable/disable toggle in Inspector when the script does not contain certain methods like Start
Closed
UUM-46570
MonoBehaviour script component is missing the enable/disable toggle in Inspector when the script does not contain certain methods like Start
Unity: Inspector Framework
As Designed
2022.3.X
2021.3.X
If a MonoBehaviour has no code that runs automatically (Awake, Start, Update, etc.), it makes no sense to disable it so we're not showing the checkbox. It wouldn't do anything.
Reproduction steps:
1. Open the “ScriptToggleStripped“ project
2. Open the “Sample” scene
3. Select the “Test” GameObject
4. Observe the “Empty Script” and “Awake Script” components
Expected result: The components can be enabled/disabled
Actual result: The components are missing the enable/disable toggle