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

chore: test project update #2742

Draft
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

NoelStephensUnity
Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity commented Oct 17, 2023

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
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

1 participant