x


`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'

more ▼

asked May 16 '12 at 12:05 AM

imnickb gravatar image

imnickb
258 13 17 20

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.

May 16 '12 at 01:03 AM syclamoth

I was confused because I wasn't using EditorUtility anywhere. I forgot I had purchased Play Mode Persist and that's where the warning was coming from.

May 18 '12 at 12:17 AM imnickb
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3668
x1937
x20

asked: May 16 '12 at 12:05 AM

Seen: 642 times

Last Updated: May 18 '12 at 12:17 AM