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!
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
- Editor crash on "PPtr<Shader>::operator Shader*() const" when checking in changes with a very long comment in Unity Version Control window
- [Ubuntu] Toolbar and menu items for Version Control lack spaces in text on Linux
- Unity Version Control window Pending Changes tab’s Item checkbox is unresponsive when clicked and the item list is empty
- Audio stuttering occurs when heavy processing is performed while OnAudioFilterRead is in use
- Inconsistent Node search results in VFX Graph
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.