Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Khazzack · Sep 12, 2017 at 08:09 PM · networkingprogramming

Issue with Network Manager

Hey guys, I've been following along Brackeys multiplayer FPS tutorial as listed here, https://www.youtube.com/watch?v=H9GdXiF15r8∈dex=19&list=PLPV2KyIb3jR5PhGqsO7G4PsbEC_Al-kPZ

I'm copying it exactly as he writes it, but whenever I try to make NetworkManager a singleton, like he does i get an error...

Assets/Scripts/Networking/Lobby/JoinGame.cs(26,41): error CS0117: NetworkManager' does not contain a definition for singleton'

I cannot understand why?

Because it's not a singleton like he does it, the rest of my NetworkManager calls don't work?

alt text

On the left is my un-working code, whilst on the right is his working code. All my issues seem to come from the NetworkManager...

Example of NetworkManager call error... Assets/Scripts/Networking/Lobby/JoinGame.cs(27,28): error CS1061: Type NetworkManager' does not contain a definition for matchMaker' and no extension method matchMaker' of type NetworkManager' could be found. Are you missing an assembly reference?

His tutorial is made in an older version of Unity, but I have gone through the documentation and upgraded all the API changes.

I've also tried making it a static variable but that also doesn't seem to work? (as i understand that's kind of what a singleton does?)

Anyone know what I can do to fix this issue?

Thanks in advance

issue.png (131.0 kB)
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image unity_DA0A7C5DC4CBE3FA9647 · Jun 05 at 05:35 PM 0
Share

@Khazzack Bro i'm also following this Brackeys Plz plz can u help me i'm on 17th video AND i'm facing this issue.. Create Internet Match <------- This is not showing in server to me when i run the game. You can see in pics as well matchMaker and StartMatchMaker methods are showing error to me Plz help Bro God Bless you alt text alt text

brackeys-multiplayer-game-lobby-windows-mac-linux.png (80.5 kB)
brackeys-multiplayer-game-microsoft-visual-studio.png (90.0 kB)

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by akforever · Dec 16, 2017 at 05:19 AM

@Khazzack Make sure you do not have any custom networkmanager script. The error is most likely due to the script already using the networkmanager singleton. Delete any such scripts and you should be fine. Hope this solves your problem.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

103 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

My mqtt protocol is stopping 0 Answers

Multiple array variable 2 Answers

UNET Server not setting [SyncVar] 0 Answers

Unity networking tutorial? 6 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges