I’m working on a save/load file system for my level editor. It saves the files as .island files and I was wondering, is there a cross-platform way to set the file icon?
Idk if this matters but I save them with StreamWriter.WriteLine();
This is not going to be anything you do to the file you’re writing, but will have to be something you set in the operating system. There’s not going to be a cross-platform way to do it, either. On Windows, you have to associate the file with your app and it’ll take on that app’s icon, or you can do some registry stuff (which I’m not sure how you’d code from within Unity). On Mac, you’ll have to edit the info.plist of your built app.