Open acidiclight opened 2 years ago
This happened to me too when opening my Unity project on a Linux machine. I'm not really sure why macOS and Linux are in one plugin, seems like an odd design decision.
Hello, I had the same issue. But in my case I could not edit the Facepunch.Steamworks.Posix to change macOS to Linux. The reason was that I had installed it via Package Manager (git URL). Therefore the files were Package (not in Assets). For those who have the same problem here is how I resolved it:
It should work. Hope this can help.
Glad to know I wasn't the only one having the issue.
I almost wonder if the simplest fix would be to just duplicate the Posix plugin, and then have one for macOS and one for Linux.
It seems that, although Facepunch.Steamworks lists itself as supporting Linux natively (awesome!), the Unity plugin file for POSIX systems (macOS/Linux) is misconfigured.
After launching the Unity Editor for one of my gamedev projects that uses this library, I noticed that several hundred script compiler errors were preventing me from launching the full editor. Upon reading the logs I found that they were all errors related to missing Steamworks namespaces and undeclared identifiers.
A quick Google search brought up this Unity Answers thread describing the exact same issue.
The suggested fix was to open the
Assets/Plugins/Facepunch.Steamworks/Facepunch.Steamworks.Posix
plugin and change the "OS" setting under "Platform Configuration" from "OSX" to "Linux."Doing the above on my project fixed the issue. But perhaps this is something that could be configured by default in future releases? Seems like a good idea to split the Posix plugin into a separate OSX and Linux plugin since Unity seems to only let you select either, not both, for a given plugin.