mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
obsolete and default to nm.sendrate
This commit is contained in:
parent
e6c342e4d3
commit
3a56effebf
@ -41,9 +41,9 @@ public abstract class NetworkBehaviour : MonoBehaviour
|
|||||||
// it makes sense to keep every component's syncInterval setting at '0' by default.
|
// it makes sense to keep every component's syncInterval setting at '0' by default.
|
||||||
// otherwise, the overlapping timers could introduce unexpected latency.
|
// otherwise, the overlapping timers could introduce unexpected latency.
|
||||||
// careful: default of '0.1' may
|
// careful: default of '0.1' may
|
||||||
[Obsolete("NetworkBehaviour.syncInterval was removed. We are tightening up Mirror core in order to support fast paced games now too.")]
|
// DEPRECATED 2024-07-11
|
||||||
[Range(0, 2)]
|
[Obsolete("NetworkBehaviour.syncInterval was removed to better support fast paced games. All components now sync on '1 / NetworkManager sendRate'")]
|
||||||
[HideInInspector] public float syncInterval = 0;
|
public float syncInterval => 1f / NetworkManager.singleton.sendRate;
|
||||||
|
|
||||||
/// <summary>True if this object is on the server and has been spawned.</summary>
|
/// <summary>True if this object is on the server and has been spawned.</summary>
|
||||||
// This is different from NetworkServer.active, which is true if the
|
// This is different from NetworkServer.active, which is true if the
|
||||||
|
Loading…
Reference in New Issue
Block a user