Skip to content

refactor!: remove spawn payload technical debt #1005

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

Merged
merged 2 commits into from
Aug 2, 2021

Conversation

NoelStephensUnity
Copy link
Collaborator

This PR remove the option to send a payload when spawning an object.
The primary reason for this is that we do not save the payload data on a per NetworkObject instance basis and if a user were to use the spawn payload parameter that included data that was required to set any specific states of a NetworkObject or associated components then late joining players would not receive the payload information and would become out of sych with the game.

Associated Jira Technical Debt Ticket: MTT-982

Removing the option to send a payload when spawning an object.
The primary reason for this is that we do not save the payload data on a per NetworkObject instance basis and if a user were to use the spawn payload parameter that included data that was required to set any specific states of a NetworkObject or associated components then late joining players would not receive the payload information and would become out of sych with the game.
Needed more than 1 commit and left out a few checks for payload when reading as well as removed XML Doc parameters that referred to "payload".
Copy link
Contributor

@0xFA11 0xFA11 left a comment

Choose a reason for hiding this comment

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

🚀

@NoelStephensUnity NoelStephensUnity merged commit bba72a4 into develop Aug 2, 2021
@NoelStephensUnity NoelStephensUnity deleted the refactor/spawnpayload-removal branch August 2, 2021 18:25
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.

4 participants