- Home /
PrefabUtility does not exist?
I am having a issue where every time I try exporting my game it gives me the error that my saving game code for saving a prefab does not exist in the current context. Help?
I'm guessing some script you've written or utilized in the build was intended for use within the editor only.
Please always post the full error message verbatim along with any relevant code / screenshots. Questions are often rejected if you don't include this information, so please comment or edit your post to include it.
Best,
Answer by UnityCoach · Dec 09, 2016 at 11:55 AM
PrefabUtility is part of UnityEditor assembly, not UnityEngine. Scripts that uses it must be placed in a /Editor folder, so that the Unity ignores them with you build your project.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
How can I make a new line in Unity UI text? 2 Answers
"Nothinge Selected" 1 Answer