Config File Missing From Data Folder On Windows Desktop Build

Hi
Confused as to why my config file seems missing from my Data folder in a Windows desktop build.
My config file ‘config.cfg’ is located inside my Assets/Resources folder.

I am accessing it like so

System.IO.Path.Combine(Application.datapath+ "/Resources/", "config.cfg")

No errors when I play in the IDE.

However, on a Windows build I don’t see this config.cfg file anywhere inside my Data folder that is created when I build.

Why? Isn’t the Resources folder the correct place to put files you want to have as part of your build?

Everything in Resources is combined into one big asset file and only loadable through Resources.Load after building.

You want the StreamingAssets folder, which is copied 1:1 with your build.

1 Like