Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
2
Question by CommandoJones · Jun 25, 2015 at 10:01 PM · unity 5networkingunity5

UNET Client Ready Flag Inconsistancy

I am currently setting up the UNET pipeline and I noticed that there was a flag called: ClientReady. This flag seems to prevent all networking coming to an individual client as long is a client is marked as not-ready. As far as I can see from the documentation, there is nowhere that this flag should be set to true on its own and yet my client is made ready after connecting to the server and loading the scene automatically through the NetworkManager.ServerChangeScene function. Within the documentation(listed below) it says that clients will be set to "not-ready" and that client must set their ready flag on their own. I am wondering if somehow this is not happening or if even the inverse of this is happening and the server is setting the clients to ready. If there is somewhere else that the clients are being set to ready that I am unaware of I would love to know. Thank you in advance.

http://docs.unity3d.com/ScriptReference/Networking.NetworkManager.ServerChangeScene.html

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by CommandoJones · Jun 27, 2015 at 12:12 AM

Discovered that the NetworkManager.OnClientConnect function be default will add the player object which will set the ClientReady flag to true. The ServerChangeScene function probably only sets the clients' ClientReady flag to unready once it is initially called which, in my case, was before the client ever connected.

Comment
Add comment · Show 3 · 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
avatar image $$anonymous$$ · Jun 30, 2015 at 12:44 AM 0
Share

This is something I'm also looking at. So, when calling ServerChangeScene manually, you've found that the client's ready flag does not get set to false but remains true?

avatar image CommandoJones · Jul 01, 2015 at 06:13 AM 0
Share

I have not tried calling this function once the client has already connected. However, calling it before the client connected did not seem to have any effect.

avatar image veereshkumbar · Sep 12, 2017 at 08:06 AM 0
Share

so, how can i make a client always in a ready state?? please help

avatar image
0

Answer by SCLaunder · Jul 01, 2016 at 01:56 PM

For anyone still having a problem with this issue we've found that if you don't override NetworkManager.OnClientSceneChanged(NetworkConnection conn) then the default implementation of this function sets the client connection to ready. However if you override this function you will need to set your client connections to ready manually using ClientScene.Ready(NetworkConnection connection).

I hope this helps.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

UNET Matchmaking Filter Issues 1 Answer

UNET NullReferenceException OnServerAddPlayer and questions about messages 0 Answers

How to record a webcam stream to a file on the server? 0 Answers

Unet Timeout Issues 4 Answers

UNET Player Object Creation Error: Failed to spawn server object 1 Answer


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