Hello friends
I been lookin at the Fishnet docs on syncvars and I wanted to clarify the interval input property.
For example,
private readonly SyncVar<float> _health = new SyncVar<float>(new SyncTypeSettings(1f);
private void Awake()
{
_health.OnChange += on_health;
}
This is the example on the docs.
Does this 1f mean
- it only syncs every 1 second AND when the value changes?
- It syncs 1 second AFTER the value changes?
- It syncs in 1 second intervals when the value changes?
Is there a setting to make the syncvar ONLY SYNC on change? Meaning that there is no need for this 1f input?
Thank you (: