Skip to content
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

feat: New NetworkManagerHud #340

Merged
merged 5 commits into from
Aug 31, 2020
Merged

feat: New NetworkManagerHud #340

merged 5 commits into from
Aug 31, 2020

Conversation

uweeby
Copy link
Member

@uweeby uweeby commented Aug 31, 2020

(Could not get #307 to rebase with the conflicts)

Replaces the old OnGUI solution with a prefab under a canvas. Setting it up is as simple as adding a canvas to the scene if it does not already have one. Dragging the prefab under that canvas. Then adding a reference to the existing NetworkManager. From there it functions the same as the old solution.

image

Moved this and the RunInBackground script into a Common folder under Examples as both of these things are generally quickly replaced and never used in production.

Note: The massive increase in LOC is from the addition of the prefab to the existing examples. The actual HUD logic mostly moved out of code and into the Unity UI via GameObjects and buttons. The LOC dropped from 150 to 50 for what that's worth.

Also since its no longer based on OnGUI it means that more of the remaining code is testable.

@sonarcloud
Copy link

sonarcloud bot commented Aug 31, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

93.3% 93.3% Coverage
0.0% 0.0% Duplication

@uweeby uweeby merged commit 267f513 into master Aug 31, 2020
@uweeby uweeby deleted the newNetManHud branch August 31, 2020 20:11
github-actions bot pushed a commit that referenced this pull request Aug 31, 2020
# [43.5.0](v43.4.2...v43.5.0) (2020-08-31)

### Features

* New NetworkManagerHud ([#340](#340)) ([267f513](267f513))
@github-actions
Copy link
Contributor

🎉 This PR is included in version 43.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

1 participant