- Home /
`UnityEditor.EditorUtility.GetPrefabType(UnityEngine.Object)' is obsolete?
I've been getting this warning and I don't know what it means. I've searched around ad the only thing I've found was about an EzGui error, but I'm not using EzGui.
Assets/Editor/AnBSoft/Wizards/BuildAtlases.cs(291,80): warning CS0618: UnityEditor.EditorUtility.GetPrefabType(UnityEngine.Object)' is obsolete:
Use PrefabUtility.GetPrefabType'
It's just a bit of code that is out of date. It's as simple as doing what the error message suggests, and replacing 'EditorUtility' with 'PrefabUtility' in those places.
I was confused because I wasn't using EditorUtility anywhere. I forgot I had purchased Play $$anonymous$$ode Persist and that's where the warning was co$$anonymous$$g from.
Your answer
![](https://koobas.hobune.stream/wayback/20220613071533im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Can't draw a box using Basic GUI 1 Answer
Loading a scene in game with a GUI 1 Answer