Search Issue Tracker

Won't Fix

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!

 

  1. 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.

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.