TextAsset textAssets =(TextAsset) Resources.Load("ShopConfig"); OK TextAsset textAssets = Resources.Load < TextAsset > ("ShopConfig");//wrong!