heroiclabs / unity-sampleproject

A sample game called Pirate Panic for Unity engine built with Nakama server.
https://heroiclabs.com
Apache License 2.0
141 stars 40 forks source link

useMainTread error #10

Closed johnbrindle closed 3 years ago

johnbrindle commented 3 years ago

Hi downloaded the unity project and opened it in Unity 2020.2.6f and imported Nakama with the Package Manager, but I get an error.. Assets\PiratePanic\Scripts\Scene01MainMenuController.cs(104,47): error CS1739: The best overload for 'NewSocket' does not have a parameter named 'useMainThread'

I was going to read through your tutorial and see if I can make any sense of it all and get it working in my game. With this error I cannot work how things work. Something I have done I am sure; I could do with a few pointers to get the demo game working.

Thanks John

lugehorsam commented 3 years ago

@johnbrindle thanks for filing this issue. The useMainThread parameter is available in a specific branch of our Unity SDK (it is still experimental.) However our sample project does point to that commit, so it's odd that it is not available to you.

Can you confirm two things for me:

(1) The Packages/manifest.json file in your Pirate Panic project has the following entry:

"com.heroiclabs.nakama-unity": "https://github.com/heroiclabs/nakama-unity.git?path=/Packages/Nakama#efc3d92182f1c00f26cc5a3493fc2406abd01931",

(2) You have the correct version of the package checked out in Unity's package cache:

Screen Shot 2021-03-08 at 2 51 28 PM
lugehorsam commented 3 years ago

(Sorry, the third column contains a folder called PackageCache.)

lugehorsam commented 3 years ago

Closing due to inactivity.

lugehorsam commented 3 years ago

@johnbrindle let me know if this is still an issue for you and I can reopen it.