Skip to content

Conversation

@fernando-cortez
Copy link
Contributor

@fernando-cortez fernando-cortez commented Nov 18, 2024

Description

This PR moves the spawning of a client's player NetworkObject to a scene NetworkObject. A player's NetworkObject was being spawned conveniently after the scene had been loaded, but this workflow now ensures that the player's NetworkObject is only spawned once it has been synchronized with all the scene's NetworkObjects.

Functionality should remain the same, but instead this scene NetworkBehaviour PlayerSpawner will spawn and position the player at a spawn point.

Issue Number(s)

MTT-9622

Contribution checklist

  • [ N/A ] Tests have been added for the project and/or any internal package
  • Release notes have been added to the project changelog file
  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • JIRA ticket ID is in the PR title or at least one commit message
  • Include the ticket ID number within the body message of the PR to create a hyperlink

@fernando-cortez fernando-cortez changed the title feat: adding a spawner for the player's avatar in the game scene feat: adding a spawner for the player's avatar in the game scene [MTT-9622] Nov 18, 2024
@fernando-cortez fernando-cortez marked this pull request as ready for review November 18, 2024 22:17
@fernando-cortez fernando-cortez requested a review from a team as a code owner November 18, 2024 22:17
hammerlerobi
hammerlerobi previously approved these changes Nov 22, 2024
Copy link
Contributor

@hammerlerobi hammerlerobi left a comment

Choose a reason for hiding this comment

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

Tested and works as expected. Fixed some merge conflicts to develop. (Took changes in this PR and readded prefabs needed for TextChat in BootStrap Scene)

…player-spawn

# Conflicts:
#	Basic/DistributedAuthoritySocialHub/Assets/Scenes/Bootstrap.unity
#	CHANGELOG.md
@fernando-cortez fernando-cortez merged commit 9e7dd84 into develop Nov 25, 2024
29 checks passed
@fernando-cortez fernando-cortez deleted the feat/distributed-authority-sample/manual-player-spawn branch November 25, 2024 17:23
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.

3 participants