3 ms·
It's pretty straightforward to have an abstraction for file systems with "special" file locations, it's been common in app sdks for at least a decade in a half.
by duped 4y ago
It's pretty straightforward to have an abstraction for file systems with "special" file locations, it's been common in app sdks for at least a decade in a half. Unity doesn't have something like that?
Eg you would never use /tmp or %USER%/AppData, but call a function File::getPath(TempDirectory) or something like that.
- kroltan 4y agoIt does, but I'm guessing it's just one simply understandable example. C# has the very Windows-centric https://docs.microsoft.com/en-us/dotnet/api/system.environment.specialfolder?view=net-6.0 https://docs.microsoft.com/en-us/dotnet/api/system.environme... Unity itself has the Application.*Path properties for some more general cross-platform-aware paths. https://docs.unity3d.com/ScriptReference/Application.html https://docs.unity3d.com/ScriptReference/Application.html