Skip to content

fix: Improved OnValueChanged door example#3959

Draft
NoelStephensUnity wants to merge 1 commit intodevelop-2.0.0from
fix/docs/onvaluechange_example_update
Draft

fix: Improved OnValueChanged door example#3959
NoelStephensUnity wants to merge 1 commit intodevelop-2.0.0from
fix/docs/onvaluechange_example_update

Conversation

@NoelStephensUnity
Copy link
Copy Markdown
Member

Purpose of this PR

Updating the door example to provide a more recommended way of using OnValueChanged and how to update based on changes in state/value. The original door example could lead users to believe that OnValueChanged would be invoked on all clients upon spawn.

Jira ticket

NA

Changelog

  • Changed: Updated the NetworkVariable.OnValueChanged door example for better clarity and usage patterns.

Documentation

  • Includes updates to existing documentation.

Testing & QA (How your changes can be verified during release Playtest)

Functional Testing

Manual testing :

  • Manual testing done
    • Reading over the change in documentation.

Automated tests:

  • Covered by existing automated tests
  • Covered by new automated tests

Does the change require QA team to:

  • Review automated tests?
  • Execute manual tests?
  • Provide feedback about the PR?

If any boxes above are checked the QA team will be automatically added as a PR reviewer.

Backports

Does not require a backport.

Updating the door example to provide a more recommended way of using OnValueChanged.
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.

1 participant