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

Feature/network object pool #362

Merged
merged 20 commits into from Oct 15, 2021
Merged

Conversation

ryantwarner
Copy link
Contributor

No description provided.

@unity-cla-assistant
Copy link

unity-cla-assistant commented Sep 1, 2021

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Ryan Thomas Warner seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@ryantwarner ryantwarner changed the base branch from main to develop September 1, 2021 20:35
…jectpool into the bossroom scene, adds cleanup to OnDestroy in networkobjectpool.cs. Clears up code style on awake method.
LukeStampfli
LukeStampfli previously approved these changes Sep 13, 2021
SamuelBellomo
SamuelBellomo previously approved these changes Sep 13, 2021
Copy link
Collaborator

@SamuelBellomo SamuelBellomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after cleanup comments, ship it!

@Cosmin-B Cosmin-B closed this Sep 14, 2021
@Cosmin-B Cosmin-B deleted the feature/network-object-pool branch September 14, 2021 10:09
@Cosmin-B Cosmin-B restored the feature/network-object-pool branch September 14, 2021 13:08
@Cosmin-B Cosmin-B reopened this Sep 14, 2021
@SamuelBellomo SamuelBellomo dismissed stale reviews from LukeStampfli and themself via bfce22b September 27, 2021 14:00
…logies/com.unity.multiplayer.samples.coop into feature/network-object-pool

* 'feature/network-object-pool' of github.com:Unity-Technologies/com.unity.multiplayer.samples.coop:
  adding comment to explain the magic
- Replaced the hardcoded offset when spawning a projectile with using its prefab's transform when pooling it.
- Moved the resetting of properties to the OnNetworkSpawn method
Cleaned up old comments

Co-authored-by: Sam Bellomo <71790295+SamuelBellomo@users.noreply.github.com>
LukeStampfli
LukeStampfli previously approved these changes Oct 13, 2021
SamuelBellomo
SamuelBellomo previously approved these changes Oct 14, 2021
@LPLafontaineB LPLafontaineB self-assigned this Oct 14, 2021
@LPLafontaineB
Copy link
Contributor

LPLafontaineB commented Oct 14, 2021

There seems to be an issue on the client side I missed earlier. When a projectile gets reused from the pool, the client seems to see it interpolate from its last position prior to returning to the pool to its new initial position. I'll have a look at this before merging
Edit: After investigation, it was an issue with NGO, which is fixed in its latest version.

@LPLafontaineB LPLafontaineB merged commit 6d716ff into develop Oct 15, 2021
@LPLafontaineB LPLafontaineB deleted the feature/network-object-pool branch October 15, 2021 19:11
SamuelBellomo added a commit that referenced this pull request Oct 18, 2021
* develop:
  feat: server-authoritative character NetworkAnimator (#367)
  Feature/network object pool (#362)
  Update compatible Unity version in Readme (#376)

# Conflicts:
#	Assets/BossRoom/Prefabs/Character/PlayerAvatar.prefab
#	Assets/BossRoom/Scenes/BossRoom.unity
#	Assets/BossRoom/Scripts/Client/Game/Action/DashAttackActionFX.cs
#	Assets/BossRoom/Scripts/Client/Game/Entity/ClientAvatarGuidHandler.cs
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.

None yet

6 participants