Unity Issue Tracker - Custom field is Read-Only when used in Project Settings
Closed
UUM-49119
Custom field is Read-Only when used in Project Settings
Unity: IMGUI Framework
As Designed
2023.3.X
2023.2.X
2023.1.X
2022.3.X
2021.3.X
Serialized objects created with a ScriptableSingleton have the HideFlags.DontSave | HideFlags.HideInHierarchy; flags set. You can set your object as editable in the OnEnable method:
void OnEnable()
{
hideFlags &= ~HideFlags.NotEditable;
}
How to reproduce:
1. Open the user's attached project
2. Open Edit>Project Settings...
3. Select "AuroraUI" in the Project Settings window
Expected results: “Test Int” is not greyed out
Actual results: “Test Int” is greyed out