ObjectNet provides one implementation of a clock designed to be more accurate than the internal unity clock where the target is multiplayer operations.




This internal clock has the same functionalities as the Unity Time class, we recommend using ObjectNet time wrapper which will decide which clock they will use.


We strongly recommend using those functions if you are starting your development :



NetworkClock.deltaTime


NetworkClock.fixedDeltaTime


NetworkClock.time


NetworkClock.deltaFrames


NetworkClock.tick



If Network Clock is enabled, ObjectNet will use its internal clock, nonetheless, if Network Clock is not enabled ObjectNet will use the Unity default clock.


To see each function in detail check ObjectNet API documentation.