Resources -- folder is in the right spot right?

I have been trying to track down using google why I get the red line under
Resources.LoadAll("")


        public static Quest GetByName(string questName)
        {
            foreach (Quest quest in *Resources.LoadAll<Quest>(""))* <<--- red line
            {
                if(quest.name == questName)
                {
                    return quest;
                }
            }
            return null;
        }

Here is folder structure

Resources1

Thanks in advance

I’m not using VS Code (I use Jetbrains Rider as an editor), but if there isn’t an error showing when you save the code and return to Unity, then there isn’t an issue. Sometimes VS Code just shows squiggles. Only trust Unity’s actual error messages in teh console.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms