Commit Graph

6389 Commits

Author SHA1 Message Date
MrGadget
7fa4d312ae fix(SWT): Reduced allocations in logging 2024-09-21 16:32:55 -04:00
MrGadget
af97b197af fix(SWT): Reduced allocations in logging 2024-09-21 16:32:55 -04:00
MrGadget
049c8e1486 chore(Tests): Improved Sync Collection tests 2024-09-21 16:32:55 -04:00
mischa
264737302a Snapshot Interpolation: add comment for easier understanding 2024-09-21 16:32:55 -04:00
MrGadget
4efe32e8ad fix(ControllerBase): Remove Application.isFocused check
- AutoRun should work even if not focused
2024-09-21 16:32:55 -04:00
MrGadget
37ccb473a3 fix(NetworkTransformBase): timelineOffset default true 2024-09-21 16:32:55 -04:00
MrGadget
b437f91767 fix(TankControllerBase): Reset move / turn speeds OnDisable 2024-09-21 16:32:55 -04:00
MrGadget
86ad3b2c2d fix(PlayerControllerBase): Reset move / turn speeds OnDisable 2024-09-21 16:32:55 -04:00
MrGadget
fd62020d96 fix(EdgegapLobby Example): Removed old navmesh 2024-09-21 16:32:55 -04:00
MrGadget
01bcbfbf53 fix(EdgegapLobby Example): Fixed scene camera, ground, spawns, navmesh 2024-09-21 16:32:55 -04:00
Robin Rolf
1d54c8d2c8 fix: Edgegap Lobby Error continues to Connecting (#3898)
Missing return, oops.
Also some minor readability cleanup
2024-09-21 16:32:55 -04:00
MrGadget
e411e75e7c TankTurretBase: fixed comment in HandleTurning 2024-09-21 16:32:55 -04:00
MrGadget
f2541d4729 fix(TankControllerBase): Turning is now persisted when AutoRun is enabled. 2024-09-21 16:32:54 -04:00
MrGadget
ca217ed59f PlayerControllerBase: fixed comment in HandleTurning 2024-09-21 16:32:54 -04:00
MrGadget
708a0121d3 fix(Examples): Updated Tank prefabs with Cooldown 2024-09-21 16:32:54 -04:00
MrGadget
5b5aa16f32 fix(TankTurretBase): Added Cooldown 2024-09-21 16:32:54 -04:00
MrGadget
1b3d2f4fd3 fix(PlayerTest Example): Changed Player Prefab 2024-09-21 16:32:54 -04:00
MrGadget
5927b49e0e fix(PlayerControllerBase): Turning is now persisted when AutoRun is enabled. 2024-09-21 16:32:54 -04:00
mischa
f18e70e4be fix: NetworkIdentity.OnDestroy cyclic memory leak 2024-09-21 16:32:54 -04:00
MrGadget
25fa9fe0be fix(Examples): Scenes and Prefabs updated
NT Base SendIntervalMultiplier removed
2024-09-21 16:32:54 -04:00
mischa
03fca3a25c remove old comment 2024-09-21 16:32:54 -04:00
mischa
e7ad351a98 update comment 2024-09-21 16:32:54 -04:00
mischa
f33ed68a1b breaking: NetworkTransform sendIntervalMultiplier replaced by syncInterval math (#3895)
* repro

* force sendIntervalMultiplier based on syncInterval!

* Revert "repro"

This reverts commit e51c996fa6.

* cleanup

* fix

* hide

* property

* rmv

---------

Co-authored-by: mischa <info@noobtuts.com>
2024-09-21 16:32:54 -04:00
DANILIAMMO
2cdf811671 style(ConnectionQuality): Fix indention (#3896) 2024-09-21 16:32:54 -04:00
mischa
715789b1f3 Edgegap Plugin: update to latest version to remove more MIRROR CHANGEs; also supports moving the folder better (#3891)
* Edgegap Plugin: non-breaking updates first

* Edgegap Plugin: update to latest version to remove more MIRROR CHANGEs; also supports moving the folder better

* 2021+

---------

Co-authored-by: mischa <info@noobtuts.com>
Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2024-09-21 16:32:53 -04:00
MrGadget
d99830127f feat(Examples): PlayerControllerBase with Reliable / Unreliable Derived Classes (#3889)
* Base Controllers and Reliable / Unreliable versions

* Check Application.isFocused

* Replaced PlayerController

* TankTheftAuto - Use one of each Tank Prefab
- Added Label for Reliable / Unreliable

* TankControllerBase: Require TankHealth

* TankHealth: Ensure finding correct TextMesh
2024-09-21 16:32:53 -04:00
MrGadget
18f38f23ee CharacterSelection: Removed PlayerControllerScript
- No longer used
2024-09-21 16:32:53 -04:00
MrGadget
2c8c61a3d9 CharactrerSelection: Use Common PlayerController 2024-09-21 16:32:53 -04:00
MrGadget
015596e810 PlayerController: Don't require PlayerCamera 2024-09-21 16:32:53 -04:00
MrGadget
64f5a67d3c fix(CharacterSelection Example): Separate SceneCamera script (#3888)
* CharSelection: Separate SceneCamera script

* SceneCamera: SetPositionAndRotation

* Code Cleanup
2024-09-21 16:32:53 -04:00
MrGadget
adc13e809e fix(Extensions): UNITY_2021_3_OR_NEWER 2024-09-21 16:32:53 -04:00
MrGadget
ca66ed749f fix(Extensions): Added SetPositionAndRotation (#3887) 2024-09-21 16:32:52 -04:00
JesusLuvsYooh
58c4a3f5cc Updated ReadMe for CharacterSelection example. (#3886)
Kudos to Gadget for seeing it.
2024-09-21 16:32:52 -04:00
MrGadget
58c1dfeda3 NetworkClient: Organize methods 2024-09-21 16:32:52 -04:00
mischa
0ace32ebdf perf: Weaver automatically uses VarInt compression for all integers in [SyncVar]/[Command]/[Rpc]/SyncList/NetworkMessage/etc. (#3870)
* perf: NetworkReader/Writer: read/write collection size headers as VarInt for significant bandwidth reduction!

* Weaver: when defining multiple Readers/Writers of same type, choose the one with priority suffix

* perf: NetworkReader/Writer: define weaver preferred VarInt compression for integers

* [WeaverPriority] attribute and more tests

* remove unused

---------

Co-authored-by: mischa <info@noobtuts.com>
2024-09-21 16:32:52 -04:00
MrGadget
f8680ecdcc feat(NetworkServer): Improved ReplacePlayerForConnection (#3885)
- ReplacePlayerOptions: KeepAuthority, KeepActive, Unspawn, Destroy
- NetworkServer tests updated
- Examples updated and work correctly

Eliminates need to make a coroutine to replace & destroy player.
2024-09-21 16:32:52 -04:00
MrGadget
7859b223d9 fix(NetworkClient): InvokeIdentityCallbacks call OnStartClient first (#3884)
- This is for host client to match logical call order as remote client
2024-09-21 16:32:52 -04:00
mischa
adcb83eb8a fix: NetworkServer.BroadcastToConnectio can now recover from null entries instead of slowing down perf with log messages forever [credits: BigBoxVR/CF] 2024-09-21 16:32:52 -04:00
MrGadget
ef88e88adc fix(TankAuthority): Player pos 1m up 2024-09-21 16:32:52 -04:00
mischa
2c7b0d15de perf: NetworkReader/Writer: read/write collection size headers as VarInt for significant bandwidth reduction! (#3868)
Co-authored-by: mischa <info@noobtuts.com>
2024-09-21 16:32:52 -04:00
MrGadget
8d2015bf89 chore: Example Controllers Code Cleanup 2024-09-21 16:32:52 -04:00
MrGadget
3e771ab471 fixed platform collider 2024-09-21 16:32:52 -04:00
MrGadget
6ca20ba239 release: Mirror 90.0.0 2024-09-21 16:32:52 -04:00
JesusLuvsYooh
c7786a5b56 fix: Examples colliders and missing namespace. (#3881)
* fix: Example scene and prefab colliders fixed.

No idea what happened, but some box colliders seem to be double the default size.

* Namespace to couch coop scripts.
2024-09-21 16:32:52 -04:00
MrGadget
48e7bbfa91 TopDownShooterLighting 2024-09-21 16:32:52 -04:00
MrGadget
f7c255925c TopDownShooter 2019 Updates 2024-09-21 16:32:52 -04:00
MrGadget
136bf579e2 fix(TopDownShooter): simplify Flashlight code 2024-09-21 16:32:52 -04:00
mischa
38a05a0925 fix: TimeSnapshotMessage doesn't require authority anymore to avoid disconnecting connections where the unreliable message arrived before the reliable authority message 2024-09-21 16:32:52 -04:00
MrGadget
ae44268fb3 Examples - Lighting 2024-09-21 16:32:52 -04:00
MrGadget
297a9014f4 Examples - Lighting 2024-09-21 16:32:51 -04:00