Skip to content
vr-thi edited this page Jul 17, 2017 · 1 revision

Time

Adjust your code

Replace methods

You can use the fields provided by the CAVE package the same way as in Unity. The returned value equals the corresponding value on master given by Unity in the current frame.

UnityEngine CAVE
Time.time TimeSynchronizer.time
Time.deltaTime TimeSynchronizer.deltaTime

What does not work?

  • Currently only the above specified values are synced

How it works

At the beginning of every Update() call the master sends the current time state to all slaves.

Package

InputTimeMessage
float deltaTime
float time

Clone this wiki locally