Skip to content

feat: log warning if detected child NetworkObjects under a NetworkPrefab#938

Merged
0xFA11 merged 1 commit intodevelopfrom
feat/validate-netprefabs
Jul 1, 2021
Merged

feat: log warning if detected child NetworkObjects under a NetworkPrefab#938
0xFA11 merged 1 commit intodevelopfrom
feat/validate-netprefabs

Conversation

@0xFA11
Copy link
Copy Markdown
Contributor

@0xFA11 0xFA11 commented Jul 1, 2021

this PR promotes non-NetworkObject NetworkPrefab detection to ErrorLog because that particular problematic NetworkPrefab will not be registered at all.

this PR also introduces a warning log if we detect child NetworkObjects under a NetworkPrefab because spawning child NetworkObjects under NetworkPrefabs is not supported yet.

@0xFA11 0xFA11 changed the title feat: print WarningLog if detected child NetworkObjects under a NetworkPrefab feat: log warning if detected child NetworkObjects under a NetworkPrefab Jul 1, 2021
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.

Nice... like the networkPrefab var addition.
LGTM

@0xFA11 0xFA11 merged commit 2621a19 into develop Jul 1, 2021
@0xFA11 0xFA11 deleted the feat/validate-netprefabs branch July 1, 2021 16:40
SamuelBellomo added a commit that referenced this pull request Jul 6, 2021
…ity-Technologies/com.unity.multiplayer.mlapi into test/multiprocess-tests/orchestration

* 'test/multiprocess-tests/orchestration' of github.com:Unity-Technologies/com.unity.multiplayer.mlapi:
  feat: log warning if detected child NetworkObjects under a NetworkPrefab (#938)
  fix: reducing log level for noisy log and adding details for developer log (#926)
  feat: users can set authority on network transform programmatically (#868)
  refactor: move NetworkBehaviour update to a separate non-static class (#917)
  test: add utils for multi instance tests (#914)
  test: downgrading testproject to 2020.3.12f1 (#927)
  refactor: decouple PendingSoftSyncObjects from NetworkSpawnManager (#913)
  chore: Change function signature of OnDespawnObject to accept NetworkObject (#928)
  fix: Empty prefab removal (#919)
SamuelBellomo added a commit that referenced this pull request Jul 6, 2021
…rocess-tests/base-multiprocess-tests

* test/multiprocess-tests/orchestration:
  feat: log warning if detected child NetworkObjects under a NetworkPrefab (#938)
  fix: reducing log level for noisy log and adding details for developer log (#926)
  feat: users can set authority on network transform programmatically (#868)
  refactor: move NetworkBehaviour update to a separate non-static class (#917)
  test: add utils for multi instance tests (#914)
  test: downgrading testproject to 2020.3.12f1 (#927)
  refactor: decouple PendingSoftSyncObjects from NetworkSpawnManager (#913)
  chore: Change function signature of OnDespawnObject to accept NetworkObject (#928)
  fix: Empty prefab removal (#919)
SamuelBellomo added a commit that referenced this pull request Jul 6, 2021
…est/multiprocess-tests/execute-step-in-context

* test/multiprocess-tests/base-multiprocess-tests:
  feat: log warning if detected child NetworkObjects under a NetworkPrefab (#938)
  fix: reducing log level for noisy log and adding details for developer log (#926)
  feat: users can set authority on network transform programmatically (#868)
  refactor: move NetworkBehaviour update to a separate non-static class (#917)
  test: add utils for multi instance tests (#914)
  test: downgrading testproject to 2020.3.12f1 (#927)
  refactor: decouple PendingSoftSyncObjects from NetworkSpawnManager (#913)
  chore: Change function signature of OnDespawnObject to accept NetworkObject (#928)
  fix: Empty prefab removal (#919)
SamuelBellomo added a commit that referenced this pull request Jul 6, 2021
…est/multiprocess-tests/adding-perf-tests-for-spawn

* test/multiprocess-tests/execute-step-in-context:
  feat: log warning if detected child NetworkObjects under a NetworkPrefab (#938)
  fix: reducing log level for noisy log and adding details for developer log (#926)
  feat: users can set authority on network transform programmatically (#868)
  refactor: move NetworkBehaviour update to a separate non-static class (#917)
  test: add utils for multi instance tests (#914)
  test: downgrading testproject to 2020.3.12f1 (#927)
  refactor: decouple PendingSoftSyncObjects from NetworkSpawnManager (#913)
  chore: Change function signature of OnDespawnObject to accept NetworkObject (#928)
  fix: Empty prefab removal (#919)

# Conflicts:
#	testproject/Packages/manifest.json
SamuelBellomo added a commit that referenced this pull request Jul 6, 2021
…to test/multiprocess-tests/adding-doc-on-how-to-use

* test/multiprocess-tests/adding-perf-tests-for-spawn: (22 commits)
  removing comment and adding something a bit more dynamic
  correct spacing
  fix for unused method better comments adding tests to make sure things don't break
  better exception
  using proper list
  using latest test framework
  rename
  apply rename
  should be kept public for following PR
  naming
  Applying suggestions
  Apply suggestions from code review
  consistent naming
  feat: log warning if detected child NetworkObjects under a NetworkPrefab (#938)
  fix: reducing log level for noisy log and adding details for developer log (#926)
  feat: users can set authority on network transform programmatically (#868)
  refactor: move NetworkBehaviour update to a separate non-static class (#917)
  test: add utils for multi instance tests (#914)
  test: downgrading testproject to 2020.3.12f1 (#927)
  refactor: decouple PendingSoftSyncObjects from NetworkSpawnManager (#913)
  ...
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