Skip to content

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

@NoelStephensUnity NoelStephensUnity commented Oct 17, 2023

Copy link
Copy Markdown
Member

More minor updates to test project:

  • Properly reset Generic网络ObjectBehaviour when despawned to assure respawning has no remaining artifacts from last spawn.
  • 网络PrefabPool now sets the pooled object's position and rotation to that of the 网络PrefabPool 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 Generic网络ObjectBehaviour 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 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
@michalChrobot

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 问题)

注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

2 participants