i have the next problem, I'm trying to make a prefab from a gameObject by doing this:
GameObject Res = GameObject.Find("Object");
UnityEditor.PrefabUtility.CreatePrefab("Assets/Temporary/Object.prefab", Res);
But it throws me this Error:
The name `UnityEditor' does not exist in the current context
What I'm trying to do is that when the user press a key it saves the object as prefab, so I can retreive it later in the game.