Skip to content

Conversation

@NoelStephensUnity
Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity commented Oct 7, 2024

Small PR to:

  • Provide instantiate and destroy notifications for NetworkManager
  • Fixed an issue with a recently merged PR (not yet released) where the default player prefab's position and rotation would not be used when spawning.

Changelog

  • Added: A static NetworkManager.OnInstantiated event notification to be able to track when a new NetworkManager instance has been instantiated.
  • Added: A static NetworkManager.OnDestroying event notification to be able to track when an existing NetworkManager instance is being destroyed.

Testing and Documentation

  • Includes integration test.
  • Documentation additions to public site are necessary (added to internal tracking).

Adding OnInstantiated and OnDestroying events to NetworkManager in order to provide the ability to know when a new NetworkManager instance has been instantiated and is being destroyed.
Fixing an issue where a player would not spawn with its default network prefab instance's position and rotation settings.
Adding validation test
adding changelog entries
Adding CR between Added and entries.
Fixing player spawn position for client-server.
The validation test to validate the player's spawn position will be the prefab's offset if no other values are specified.
removing using directive not needed.
@NoelStephensUnity NoelStephensUnity merged commit 87d23e9 into develop-2.0.0 Oct 8, 2024
24 checks passed
@NoelStephensUnity NoelStephensUnity deleted the fix/networkmanager-instantiatedestroy-notifications-and-playerspawn-prefab-offset branch October 8, 2024 22:52
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