Set save file icon?

Hellooo all!

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();

Thanks ahead of time!

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.

1 Like

Ok thanks!

I was afraid I’d have to mess with the windows registry.

Do you know how I might get the current application path from a script?

Hi, has anyone had any luck with this? I feel like I would pay money for an asset that did just this.

Probably a bit late now but just to try and answer the question, I think Application.dataPath would give a reference to the game’s data folder.

Ah, that’s it. Thanks!

I too would pay money for an asset that does this.

If anyone is willing to make one :roll_eyes: