Skip to content

fix: registry of public NetworkVariables in derived NetworkBehaviours #2423

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 3 commits into from
Feb 24, 2023

Conversation

0xFA11
Copy link
Contributor

@0xFA11 0xFA11 commented Feb 24, 2023

Supersedes #2417, originally suggested by @JayPeet.

@0xFA11 0xFA11 changed the title fix: register public networkvariable fields of derived networkbehaviour classes fix: register public NetworkVariable fields of derived NetworkBehaviour classes Feb 24, 2023
@0xFA11 0xFA11 changed the title fix: register public NetworkVariable fields of derived NetworkBehaviour classes fix: register public NetworkVariables of derived NetworkBehaviours Feb 24, 2023
@0xFA11 0xFA11 changed the title fix: register public NetworkVariables of derived NetworkBehaviours fix: registry of public NetworkVariables in derived NetworkBehaviours Feb 24, 2023
@0xFA11 0xFA11 marked this pull request as ready for review February 24, 2023 21:22
@0xFA11 0xFA11 requested a review from a team as a code owner February 24, 2023 21:22
@0xFA11 0xFA11 enabled auto-merge (squash) February 24, 2023 21:22
public IEnumerator TestInheritedFields()
{
yield return WaitForConditionOrTimeOut(CheckTestObjectComponentValuesOnAll);
Assert.IsFalse(s_GlobalTimeoutHelper.TimedOut, nameof(CheckTestObjectComponentValuesOnAll));
Copy link
Collaborator

Choose a reason for hiding this comment

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

(just informational)
You can also do the same thing this way after a WaitForConditionOrTimeOut:
AssertOnTimeout(nameof(CheckTestObjectComponentValuesOnAll));

Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity left a comment

Choose a reason for hiding this comment

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

looks clean! 👍

@0xFA11 0xFA11 merged commit a17d8bb into develop Feb 24, 2023
@0xFA11 0xFA11 deleted the fix/inherited-netvars branch February 24, 2023 21:58
NoelStephensUnity added a commit that referenced this pull request Mar 1, 2023
migrating #2423 into the unreleased section
NoelStephensUnity added a commit that referenced this pull request Mar 1, 2023
* update

Adding new unreleased section.
Migrated #2423 into the unreleased section
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