Search Issue Tracker

Active

Under Consideration for 2022.3.X, 6000.0.X, 6000.1.X, 6000.2.X

Votes

0

Found in

2022.3.57f1

6000.0.37f1

6000.1.0b5

6000.2.0a2

Issue ID

UUM-96314

Regression

No

"HideFlags.HideAndDontSave" flag does not work when the Components are added in OnEnable and Awake methods

-

How to reproduce:
1. Open the “HDF.zip“ project
2. Open the “SampleScene“
3. Select the “Add MyScript Here“ GameObject in the Hierarchy
4. Drag and add the “MyScript“ Script from the Project tab to the “Add MyScript Here“ GameObject in the Hierarchy
5. Observe the Inspector

Expected result: All 3 automatically added Scripts are grayed out and un-interactable
Actual result: Only the “Added In On Update“ Script is grayed out and un-interactable

Reproducible in: 2022.3.57f1, 6000.0.37f1, 6000.1.0b5, 6000.2.0a2

Reproduced on: Windows 11 Pro (24H2)
Not reproduced on: No other environment tested

Notes:
- After reloading either all or only one other Script will be grayed out
- Sometimes when the Scene is reloaded “InvalidOperationException: The operation is not possible when moved past all properties (Next returned false)” errors are thrown in the Console

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.