The name 'PrefabUtility' does not exist in the current context (222520)

Assets\game.cs(229,9): error CS0103: The name ‘PrefabUtility’ does not exist in the current context

Im trying build Android .apk. PrefabUtility is not supported at Android platform or what?

1 Answer

1

you can not use anything related to using UnityEditor; in Build => PrefabUtility is Edtior Only and not supported in any Build. What you can use would be the Resources Folder, for example => Resources.Load(…)