For the last few hours I have been trying to work out exactly why this line isn’t working.
GameObject TwoSlice = AssetDatabase.LoadAssetAtPath("Assets/Prefabs/Sword.prefab", typeof(GameObject)) as GameObject;
I had this line in a script that was working a few months ago, but I haven’t used it much since then and now it doesn’t work any more.
I have this in an editor window, and a button calls this but it doesn’t do anything any more, no object is instantiated into the scene.