FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: test project update by NoelStephensUnity · Pull Request #2742 · Unity-Technologies/com.unity.netcode.gameobjects · GitHub

chore: test project update - #2742

Draft
NoelStephensUnity wants to merge 9 commits into
developfrom
chore/test-project-update-pools-and-genericnetworkobjectbehaviour
Draft

chore: test project update #2742
NoelStephensUnity wants to merge 9 commits into
developfrom
chore/test-project-update-pools-and-genericnetworkobjectbehaviour

Conversation

NoelStephensUnity commented Oct 17, 2023
edited
Loading

Copy link
Copy Markdown
Member

More minor updates to test project:

  • Properly reset GenericNetworkObjectBehaviour when despawned to assure respawning has no remaining artifacts from last spawn.
  • NetworkPrefabPool now sets the pooled object's position and rotation to that of the NetworkPrefabPool when despawning the pooled object.
  • Added ShutdownWhenNoClients component which could be a useful example for users wanting to handle shutting down a DGS when all clients have disconnected.

Changelog

N.A.

Testing and Documentation

  • No tests have been added.
  • No documentation changes or additions were necessary.

Assure GenericNetworkObjectBehaviour is properly reset when despawned (for re-use in pool).
set rotation and position to the pool's rotation and position when putting the object back into the pool in order to avoid the momentary "blip" from last position when despawned.
adding a potentially useful example script
michalChrobot added stat:awaiting-triage Status - Awaiting triage from the Netcode team. and removed stat:awaiting-triage Status - Awaiting triage from the Netcode team. labels Jan 16, 2025

Copy link
Copy Markdown
Member

Hey, I was wondering if this is still valid or can we close this PR? (I'm just doing a check through PRs and Issues)

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL