In the main thread I can use Time.time
, but is there any way to get this value from a non-main thread? If not why?
Time.time
produces a"get_time can only be called from the main thread"
error when used in non-main thread.
In the main thread I can use Time.time
, but is there any way to get this value from a non-main thread? If not why?
Time.time
produces a"get_time can only be called from the main thread"
error when used in non-main thread.
I don’t think you can access it from another thread but you could always use DateTime.Now
.