Note: The behaviour is as designed but the documentation linked in comments is wrong. We simply need to update the documentation.
How to reproduce:
1. Create and open a new project
2. Create a Script and open it
3. Delete the default “Start” and “Update” methods
4. Save the changes
5. Create any GameObject in the Hierarchy and attach the created Script to it
6. Select the GameObject and observe the Inspector
Expected result: The checkbox to the left of the Script’s name is not displayed
Actual result: The checkbox to the left of the Script’s name is displayed
Reproducible in: 2023.1.0a6, 6000.0.38f1, 6000.1.0b6, 6000.2.0a3
Not reproducible in: 2022.3.58f1, 2023.1.0a5
Reproduced on: Windows 11 Pro (23H2), macOS 15.3 (M2)
Not reproduced on: No other environment tested
Notes:
– Documentation notes that the enabling checkbox should not be visible if there are none of the following functions present in the Script:
- Start()
- Update()
- FixedUpdate()
- LateUpdate()
- OnGUI()
- OnDisable()
- OnEnable()
- There must be no errors in the Console before observing the Inspector (otherwise, the checkbox will be displayed, but it will not be interactable)