SocketCluster / SocketCluster/socketcluster
Errors in Unity
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6.2k
- Forks
- 318
- PR merge metrics
- No merged PRs in 30d
Description
Installing from nuget, the ScClient namespace is available in the C# environment and compiles success in the Visual Studio. But when run in the Unity, error occurs:
"Assets/Scripts/GameManager.cs(8,7): error CS0246: The type or namespace name `ScClient' could not be found. Are you missing an assembly reference?"
I have goooogled a lot, but still can't resolve it.
But there's something useful messages:
The unity doesn't support the DLL well, the DLL should be copy to Unity's assets Plugins folder.
I follow the step, but still get the following error info:
"Unloading broken assembly Assets/Plugins/ScClient.dll, this assembly can cause crashes in the runtime."
Any suggestions or if it possible to make a plugin to the Unity's asset store? It will be much easier to use in Unity.
Finally resolve it!
I download the source files and compile to dll in my environment, and it works!
FYI:
https://github.com/sacOO7/SocketclusterClientDotNet/issues/21
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Unity error in Assets/Scripts/GameManager.cs and the broken assembly at Assets/Plugins/ScClient.dll. Review the referenced SocketClusterClientDotNet issue and compare the NuGet DLL with the source-built DLL that the reporter says worked. Done would mean ScClient loads in Unity without CS0246 or a broken-assembly error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- game-dev, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100