Why is Resources.Load failing to Load UI Prefabs?
Basically im trying to load a Prefab into the scene via path(I know bad style). it works fine for everything that is a normal Game Object, like a plane with a texture. But as soon as i try to load an UI Prefab,or a Game object wiith a rect transform it fails and just returns null.
Im using Resources.Load() + a path and then try to instantiate the game Object, like in the Documentation shown: https://docs.unity3d.com/ScriptReference/Resources.Load.html
I spend countless hours searching, nobody seems to have the same problem. Instantiation is not the problem, as it works if i drag and drop the prefab into the editor.
Any Reasons for this?
Your answer
Follow this Question
Related Questions
Spawn power ups after random amount of time 1 Answer
Problem instantiating prefabs from other instantiated prefabs 0 Answers
how to destroy the previously generated prefab so that we can populated with new set of prefabs ? 0 Answers
Destroying instantiated game objects from prefab when coliding with the ground 1 Answer