Search Issue Tracker
Won't Fix
Won't Fix in 2023.2.X
Votes
0
Found in
2023.1.10f1
2023.2.0b6
Issue ID
UUM-47097
Regression
No
ObjectField is Marked as depreciated until additional parameters are added
ObjectField is Marked as depreciated until additional parameters are added. Two version of this method exist however the one that not depreciated is not suggested for code edits.
Create new C# script: ObjectFieldTesting and add the below code
using UnityEditor;
using System;
public class ObjectFieldTesting : Editor
{
public override void OnInspectorGUI()
{
Object currentValue = new Object();
Type type = typeof(int);
base.OnInspectorGUI();
EditorGUILayout.ObjectField();
EditorGUILayout.ObjectField((UnityEngine.Object) currentValue, type, true);
}
}
Then move your mouse cursor over the incomplete EditorGUILayout.ObjectField(); method and note the tooltip- [depreciated]UnityEngine....
Expected result: ObjectField is recognized as the non-depreciated version of the method and parameters are suggested
Actual Result: The depreciated version is instead shown and no guidance on creating an ObjectField is given
!devenv_wt9LjG0fo8.gif!
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note:
Thank you for bringing this issue to our attention. After careful consideration, we have determined that this issue is not aligned with our current development priorities and focus areas. As such, we have decided not to invest time and resources into addressing it. We appreciate your input and understanding, and please let us know if you have any other concerns or issues you would like to report in the future.
Resolution Note (2023.2.X):
Thank you for bringing this issue to our attention. After careful consideration, we have determined that this issue is not aligned with our current development priorities and focus areas. As such, we have decided not to invest time and resources into addressing it. We appreciate your input and understanding, and please let us know if you have any other concerns or issues you would like to report in the future.