Search Unity

time.y not equal to time.timeSinceLevelLoad

Discussion in 'Documentation' started by xHammy, Mar 22, 2021.

  1. xHammy

    xHammy

    Joined:
    Aug 11, 2017
    Posts:
    27
    According to the documentation, time.y is the time since level load and not the same as time.Time
    https://docs.unity3d.com/Manual/SL-UnityShaderVariables.html

    In the past, I forget what unity version, I confirmed this to be true because it was causing me issues and instead had to use time.timeSinceLevelLoad to sync shaders and CPU scripts without the trouble of syncing a custom variable.

    This was causing me trouble, so I made a simple test rig to confirm the discrepancy.