Comments (12)
Hi, I was trying to add SocketManager.cs from Samples~ but have been getting these errors.. what could be the possible fix? Thank You
It is a necessity for the import that you have Git installed on your computer. Maybe try that?
from socketiounity.
Having same issue with unity 2020.3.15f2. Does anyone got a fix yet?
from socketiounity.
@syedMohib44 i couldn't get it working. though i did my own one (no ack, no file stuff, just simple sending)
from socketiounity.
Which version of Unity are you using?
Try these suggestions:
- Restart Unity and Unity Hub
or - Create a new (empty) project, in Unity -> Window -> Package Manager -> and click (+) add package from git URL and past: https://github.com/itisnajim/SocketIOUnity.git
Download/Clone this project in a separated folder (away from the new one you created using Unity)
to download: https://github.com/itisnajim/SocketIOUnity/archive/refs/heads/main.zip
drag and drop from the downloaded folder /Samples~/Sample to the created project Assets folder,
You will notice that some referenced scripts are missing, to solve: drag SocketManager.cs into Main Camera->Script->Missing (Mono Script) and yea link those Input Fields and objects with the ones exists in the scene.
Add MBlue to Cube (exists in the scene) -> Materials -> Element 0
from socketiounity.
I had the same error, but using the .zip it still has the same errors? any way to fix them?
from socketiounity.
I made a video on how to get the simple folder working, using the previous commented instructions:
https://share.vidyard.com/watch/F7cBZi1jG2mS4mb8AaVJBG?
You may have the first #1 issue, check it too!
from socketiounity.
@M1ngXU sounds awesome how did you do it can you please help me I have tried many things rn just sending will help alot
from socketiounity.
@syedMohib44
main part: https://github.com/M1ngXU/Socket.IO-Unity/blob/master/Script/Socket.cs
quite well documented
from socketiounity.
@syedMohib44 main part: https://github.com/M1ngXU/Socket.IO-Unity/blob/master/Script/Socket.cs quite well documented
Thanks man really appriacte it
from socketiounity.
I did an update to support Unity with .Net Standard 2.1 (Unity >= 2021.2.0), I test it with the latest beta Unity 2022.1.0b2 and working fine now, check with yours and please tell me if everything is ok
from socketiounity.
I have the same problem with .Net Standard 2.0.
After a little bit of research, System.Memory.dll require those dependencies:
System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3
But somehow NuGet will download the latest compatible version of them instead:
System.Buffers (>= 4.5.1)
System.Numerics.Vectors (>= 4.5.0)
System.Runtime.CompilerServices.Unsafe (>= 4.5.3)
More info here
For example we have the dll System.Runtime.CompilerServices.Unsafe (5.0.0.0) which is different from the required one (4.0.4.1)
You can disable the strong named references in Unity:
In Project Settings > Player > Other Settings > disable Assembly Version Validation. (source)
I don't know if this is a good option to just ignore this problem. But I'm still stuck after that with a conflict between the Unity package Newtonsoft and the embedded one in SocketIOUnity
@itisnajim I followed exactly what you did in the video but I doesn't work (Unity 2020.3.27f1 LTS)
from socketiounity.
All needed libs now under the folder SocketIOUnity/libs/*
from socketiounity.
Related Issues (20)
- Socket not connected on IOS device HOT 3
- issues on Quest 2 headset HOT 2
- How to use namespaces HOT 8
- Scenemanager not working. HOT 1
- Error on serializing response HOT 5
- Can't import package and manual "import" results in errors HOT 2
- WSS support HOT 1
- Not connecting to remote server! HOT 9
- can not find a reference to assembly 'System.Memory' HOT 2
- Socket.io client connects but doesn't emit in a Unity project HOT 2
- onError not called for error return from the server HOT 3
- Include SocketIOUnity as a dependency in package.json HOT 3
- How to update Unity Editor UI after receiving data from server HOT 1
- Not work with IL2CPP HOT 8
- Socket.EmitAsync() Not working on Android Oculus Build HOT 2
- The object does not create itself. HOT 2
- No events received from socket.io v2 HOT 2
- Unconnected socket cannot be stopped (unless disposed) HOT 2
- Issues with WebGL Build?
- No Acknowledgement for the method EmitStringAsJson HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from socketiounity.