Skip to content

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

Closed
wants to merge 4 commits into from

Conversation

LukeStampfli
Copy link
Contributor

@LukeStampfli LukeStampfli commented Feb 28, 2021

Depends on PR #512 to pass first!

Adds a drop in NetworkingManagerHud similar to Unet to MLAPI.

Connecting

image

While connected

image

@LukeStampfli LukeStampfli changed the base branch from develop to feature/transport-connect-address March 1, 2021 00:07
/// <summary>
/// Stops the running server, client or host.
/// </summary>
public void Stop()
Copy link
Contributor Author

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;
Copy link
Contributor Author

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
Copy link
Contributor Author

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 😃

@LukeStampfli LukeStampfli changed the title Feature/networkingmanager hud feat: networkingmanager hud Mar 1, 2021
@mattwalsh-unity mattwalsh-unity force-pushed the feature/transport-connect-address branch from 9594925 to 5f007d7 Compare March 4, 2021 01:14
Base automatically changed from feature/transport-connect-address to develop March 4, 2021 07:10
@LukeStampfli
Copy link
Contributor Author

Closing this, it's part of the contrib repo, we can explore at a later time whether we want this in core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant