Skip to content

fix: registry of public NetworkVariables in derived NetworkBehaviours#2423

Merged
0xFA11 merged 3 commits intodevelopfrom
fix/inherited-netvars
Feb 24, 2023
Merged

fix: registry of public NetworkVariables in derived NetworkBehaviours#2423
0xFA11 merged 3 commits intodevelopfrom
fix/inherited-netvars

Conversation

@0xFA11
Copy link
Copy Markdown
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
Copy Markdown
Member

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
Copy Markdown
Member

@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