Building Game w/ Scriptable Objects

In my game I’m using scriptable objects to hold the game skills and game items. When I try to reference them after building and running, there’s a null reference. Here’s the code I’m using:

GameItemList itemsList = (GameItemList)Resources.LoadAssetAtPath ("Assets/Resources/Lists/GameItemList.asset",typeof(GameItemList));

It works fine in the editor, but not outside of it. What could the problem possibly be?

It doesn’t work outside of the editor because the function you use is documented as only working in the editor, see:

Maybe you meant to use Resources.Load()?