Search Issue Tracker
Fixed
Fixed in 2022.3.0f1, 2023.1.0b19, 2023.2.0a17
Votes
0
Found in
2022.2.0b16
2023.1.0a23
2023.2.0a1
Issue ID
UUM-21816
Regression
Yes
UIToolkit does not disable controls for patched properties in 'Prefab Mode in Context' (like IMGUI does)
When entering Prefab Mode in Context we show the values of the Prefab instance on the Prefab Asset objects and disable the controls in the Inspector so the user cannot edit these (they are patched so should be non-editable).
This works correctly when using IMGUI but UIToolkit does not disable these controls yet.
IMGUI correctly disables patched properties:
!image-2022-12-20-17-11-55-978.png|width=686,height=239!
UIToolkit does not disable the controls for patched properties
!image-2022-12-20-17-13-23-520.png|width=641,height=226!
This feature has existed since Unity 2020.1
Note that the disabled properties also have a tooltip to help the user to understand why they are disabled:
!image-2023-01-11-10-56-15-703.png!
Repro:
1) Open My Project (23)
2) Open the Sample Scene
3) Select the GameObject prefab instance in the scene and notice its overrides on "User Scripts" component in the Inspector
4) In the Hierarchy click the button with '>' for 'GameObject' to enter Prefab Mode In Context
5) Notice that the the patched properties are not disabled when using UIToolkit
Expected: Controls are disabled as when using IMGUI Default Inspector.
See video attached in comment below.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on dynamixel_sdk.dynamixel:groupSyncReadTxRxPacket when entering Play Mode after updating path to Dynamixel SDK in script
- NullReferenceException is thrown when changing the Inspector preview selection
- The build size is larger when Models have Animation Type set to Generic
- Error "ArgumentException: Both 'ok' and 'cancel' strings are null or empty" logged when User is trying to create circular dependencies in UI Builder Hierarchy
- "SupportsRandomWriteOnRenderTextureFormat()" shows "False" when executed on 2023.2 and 6000.0 streams
Add comment