Karrar
d8021a33b4
Changed NetworkSceneHandler.LoadBuildSceneAsync and NetworkSceneHandler.UnloadBuildSceneAsync to return ISceneOperation instead of UnityEngine.AsyncOperation.
2025-03-12 03:51:27 +03:00
Karrar
31d97490ff
Moved Netick menu to Tools.
2025-03-11 07:24:46 +03:00
Karrar
ae40087bef
Added support for custom scene handling, in addition to an addressable scene handler.
2025-03-11 07:05:45 +03:00
Karrar
c5ebb22afd
Made a small change to PlayerSpawner in how the spawn position is calculated.
2025-03-01 01:44:32 +03:00
Karrar
79fcfc17ff
Changed OnPlayerDisconnected/OnClientDisconnected to invoke after the player/client was removed from Sandbox.ConnectedPlayers/Sandbox.ConnectedClients.
2025-02-28 23:32:09 +03:00
Karrar
f56df7fc48
Moved PlayerSpawner to Netick.Samples namespace.
2025-02-28 21:25:08 +03:00
Karrar
33f4c44d51
Removed a testing log.
2025-02-28 04:22:47 +03:00
Karrar
6d0f3be204
Changed shutdown behaviour to despawn pending destroyed objects when shutting down.
2025-02-28 00:46:53 +03:00
Karrar
b21cb08db4
Added PlayerSpawner, a helper script for quick prototyping, used to spawn/despawn a player prefab when a player (client or host) has connected/disconnected.
2025-02-28 00:28:53 +03:00
Karrar
a7d3032518
Fixed an issue with calculating LagCompHit.Normal/LagCompHit2D.Normal of a raycast on rotated sphere HitShapes.
2025-02-27 23:07:43 +03:00
Karrar
661cbc1355
Fixed an issue with calculating normal vector of LagCompHit/LagCompHit2D.
2025-02-26 17:53:29 +03:00
Karrar
1a16d85152
Changed NetworkBehaviour.StateSize to be virtual.
2025-02-25 01:13:15 +03:00
Karrar
5cd72b10fe
Changed CopyStateTo, SetStateFrom, and ClearState methods of NetworkBehaviour to be virtual.
2025-02-23 19:12:11 +03:00
Karrar
c89837d8a8
Fixed an issue where the client resets Sandbox.AuthoritativeTick before invoking OnConnectedToServer.
2025-02-22 10:55:31 +03:00
Karrar
01cf00257b
Fixed an issue with HitShape.Raycast always returning false.
2025-02-21 09:05:06 +03:00
Karrar
4622c857ed
Fixed an issue with NetworkObjectRef.IsValid and NetworkBehaviourRef.IsValid returning true for invalid id (-1).
2025-02-21 09:00:29 +03:00
Karrar
f3b3c047b1
Added HitShape.Raycast. Works the same as Collider.Raycast of Unity, but for HitShapes.
2025-02-19 05:34:26 +03:00
Karrar
291366479e
Fixed a race condition causing a null reference exception to be thrown in the client when using IM on objects existing on an additively loaded scene.
2025-02-05 22:55:35 +03:00
Karrar
2dd0cca70c
Added IsFirstNetworkFixedUpdateCall and IsLastNetworkFixedUpdateCall to NetworkSandbox. These properties are used to know if this current NetworkFixedUpdate call is the first or the last in this frame. These exclude resimulations, and only refer to new/forward ticks.
2025-01-28 06:02:03 +03:00
Karrar
14ece66a32
Fixed an issue with SetParent on pooled networked prefab instances.
2025-01-25 05:33:29 +03:00
Karrar
856f3492c6
Fixed an issue that might cause Lag Compensation not to initialize correctly if you started Netick in Awake.
2025-01-24 03:42:05 +03:00
Karrar
97106b2151
Added AddFirst, AddLast, AddBefore, AddAfter, and GetNode to NetworkLinkedList<T>. In addition, added Nodes getter to return an enumerable of the nodes of the list.
2025-01-16 22:42:47 +03:00
Karrar
e507ddf9eb
Fixed an issue when destroying a network object that has a network object (network prefab instance) parented to it, causing the prefab instance not to reset properly when reused again in the future.
2025-01-11 12:14:07 +03:00
Karrar
6045b35cc1
Fixed an issue where an exception will be thrown in the server when multiple IM group changes occur to the same object at the same tick.
2025-01-10 12:10:13 +03:00
Karrar
fc7298046d
Reverting NetworkAwake exeuction behavior in the client to the original behavior, where NetworkAwake is executed right after creating an object, regardless of networked state syncing.
2025-01-06 08:32:46 +03:00
Karrar
0c08fbdacb
Fixed an issue where Netick would no longer send any packet when the FPS is very low.
2025-01-06 05:53:33 +03:00
Karrar
058cbed487
Changed NetickArrayExt.ToNetworkStructArray8 to NetickArrayExt.ToNetworkArrayStruct8.
2025-01-04 06:45:46 +03:00
Karrar
9be37db924
Fixed an issue in the latest commit preventing Fast Serialization from working.
2024-12-30 20:42:30 +03:00
Karrar
4f2678125e
Fixed an issue with Fast Serialization when Interest Management is enabled.
2024-12-30 16:12:38 +03:00
Karrar
a12d28ba25
Added codegen support for inheritance of network behaviors across different assemblies.
2024-11-25 23:34:49 +03:00
Karrar
ca0a757f53
Added Area of Interest Layers. This is a new feature that allows you to put different objects on different AoI layers, making it possible to query each set of objects differently.
2024-11-22 22:17:22 +03:00
Karrar
d829c37c6a
Fixed an issue with Interest Management and pooled network prefab instances.
2024-11-21 11:53:50 +03:00
Karrar
411e498d9f
Fixed an issue with Unity 2022.3.51 or later where enabling Interest Management breaks the game in IL2CPP.
2024-11-20 11:31:58 +03:00
Karrar
e9b04b18c2
Testing an improvement to Prediction Offset calculation in the client - 2.
2024-11-20 10:54:52 +03:00
Karrar
80df2dedd3
Testing an improvement to Prediction Offset calculation in the client.
2024-11-18 19:12:11 +03:00
Karrar
b07f005b60
Fixed an issue where Netick might freeze the game when you reach Max Players.
2024-11-15 17:16:12 +03:00
Karrar
e31cb736ec
Improved LiteNetLib transport performance by removing two needless data copies when sending and receiving a packet.
2024-11-11 11:27:31 +03:00
Karrar
a17225f16e
Fixed an issue where some internal Interest Management Logic would still execute when Interest Management is off, causing an issue with OnInputSourceChanged not being invoked in the client for an object with a non-Global Broad Phase Filtering setting.
2024-11-09 21:04:07 +03:00
Karrar
849a0de85f
Fixed an issue with OnInputSourceChanged invoke logic in the client.
2024-11-09 05:50:28 +03:00
Karrar
71984ebb3e
Added LagCompensationStep, a script used to invoke NetworkFixedUpdate and NetworkRender on Netick.Pro.LagCompensation.
2024-11-07 23:44:42 +03:00
Karrar
027d929f57
Fixed an issue with the setter of the NetworkDictionary indexer failing to invoke OnChanged associated with the network dictionary.
2024-11-07 19:44:45 +03:00
Karrar
e04066cbcc
Changed the Lag Compensation system to be part of the network loop instead of being hardcoded to execute after all other scripts.
2024-11-07 18:07:36 +03:00
Karrar
fcd050822a
Fixed an issue with OnBecameUninterested not being invoked for objects with Narrow Phase Filterting.
2024-11-07 03:55:34 +03:00
Karrar
69b47ddf69
Added support for persistent network objects. Enabling IsPersistent on a NetworkObject will automatically mark it as DontDestroyOnLoad, preventing its instances from being destroyed on scene switches. This is only supported on network prefabs, as scene objects can't be created for a late joiner without going through the full scene changes that occurred before it connected.
2024-11-07 01:27:23 +03:00
Karrar
23f42b633a
Fixed an issue with Narrow Phase Filtering causing NetworkStart to be invoked on a filtered object in the client.
2024-11-06 20:40:00 +03:00
Karrar
a6ccd3acc0
Fixed an issue with OnInputSourceChanged not being invoked in the client.
2024-11-06 15:42:57 +03:00
Karrar
e0ef1ffc50
Added NetworkSandbox.FindSandbox, a helper method to find the sandbox of a MonoBehaviour, without having it be inherited from NeworkBehaviour.
2024-11-05 18:08:06 +03:00
Karrar
8d8308c7e2
Fixed an issue with removing network objects in the client.
2024-11-05 14:51:09 +03:00
Karrar
ca9d229ec7
Read the description for detailed changes.
...
- Added `context` parameter to `Sandbox.Log`, `Sandbox.LogWarning`, and `Sandbox.LogError`.
- Added CPU profiling support for certain important methods of Netick.
- Improved OnChanged detection performance.
- Changed `OnInputSourceChanged` to invoke after NetworkStart.
- Fixed an issue with OnChanged not invoking for newly interested objects.
- Fixed an issue with predicted objects being simulated when the client is not interested in them.
- Fixed various other issues.
2024-11-03 18:28:05 +03:00
Karrar
d7c7141ae9
Fixed an issue with predicted objects being simulated when the client is not interested in them.
2024-11-03 17:52:14 +03:00