-
Notifications
You must be signed in to change notification settings - Fork 450
feat: networkingmanager hud #510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/// <summary> | ||
/// Stops the running server, client or host. | ||
/// </summary> | ||
public void Stop() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure whether this is really a nice way to solve this. But I have run into this issue where I just wanted to have MLAPI stop the simulation and I didn't care whether I'm a server, client or host so I added this for convenience.
/// <summary> | ||
/// Gets whether or not a server or client is running. | ||
/// </summary> | ||
public bool IsRunning => IsServer || IsClient; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding this for convenience to check whether the networking manager is running as a client, server or host.
{ | ||
[RequireComponent(typeof(NetworkingManager))] | ||
[DisallowMultipleComponent] | ||
public class NetworkingManagerHud : MonoBehaviour |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will update names to new standards once they are out 😃
9594925
to
5f007d7
Compare
Closing this, it's part of the contrib repo, we can explore at a later time whether we want this in core. |
Depends on PR #512 to pass first!
Adds a drop in NetworkingManagerHud similar to Unet to MLAPI.
Connecting
While connected