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
- Adaptive Performance documentation link leads to outdated package documentation when the documentation hyperlink is pressed in the Project Settings window
- After converting a Built-in project to URP render texture related errors are spammed that can lead to Game view being rendered on top of Scene view
- UI Builder slider value lags and stutters when sliding/modifying certain property values
- "Reset UI Builder Layout" functionality inconsistently changes Canva Size when "Match Game View" is enabled/disabled
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
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.