Rocher0724 / socket.io-unity

MIT License
107 stars 19 forks source link

Method stops #7

Open caiovsoares opened 3 years ago

caiovsoares commented 3 years ago

When i call some specific methods(like Instantiate) in my callback function, the script just stops running.

Prints: After the Instantiate, no one Debug is printed, but with 0 errors.

1 2

Note: I'm Brazilian

Megamil commented 3 years ago

Estou com o mesmo problema amigo, conseguiu algo?

caiovsoares commented 3 years ago

@Megamil Infelizmente não consegui nenhum progresso.

sebastianwachter commented 3 years ago

I am having the same issues and also don't know how to resolve them...

The same thing also occurs when finding game object like:

GameObject[] gameObjects = GameObject.FindGameObjectsWithTag("<tag>");
Megamil commented 3 years ago

I am having the same issues and also don't know how to resolve them...

The same thing also occurs when finding game object like:

GameObject[] gameObjects = GameObject.FindGameObjectsWithTag("<tag>");

Nowadays I can solve it, this specific case is a problem with Thread in csharp.

if you want to base it or use it, I created a functional project:

https://github.com/Megamil/Socket.IO-Unity

in case I just wanted the thread manager I used: https://github.com/Megamil/Socket.IO-Unity/blob/main/Assets/Script/UnityThread.cs