Resources.Load doesn't work for prefab - Android.

Hi,

Resources.Load has stopped working when I run my project on an Android device. It works fine in the editor, but not on the device. The path hasn’t changed, as it used to work.

Any idea’s please?

const string PREFAB_PATH = “Prefabs/Common/GameParams”;
GameObject gameParamsObject = Resources.Load(PREFAB_PATH) as GameObject; // Fails, and is NULL!

Thank you.
Jon

Resources you want load at runtime needs to be put into Resources folder or they will not be included in the build.

It works fine in the Editor because Editor has all assets, same is not true for players