Search Unity

My Saved Variables aren't working correctly

Discussion in 'Visual Scripting' started by unity_0hWW885bnk03Dg, Aug 12, 2022.

  1. unity_0hWW885bnk03Dg

    unity_0hWW885bnk03Dg

    Joined:
    Nov 28, 2021
    Posts:
    5
    this is with VisualScripting i am trying to get the TotalSeconds between 2 times so that i can give you points on how long you were out of the game and i cant find a way to correctly save my variables i cant use playerprefs because they dont let you save DateTimes and my saved variables aren't saving right, they save the variable but the next time i come into play mode it is it's default 1/1/0001 12:00 AM. I have tried to use ScriptibleObjects But i cant find DateTime anything, i cant make a variable of a DateTime i have also tried to use a normal non-ScriptibleObject but i still cant find it I was hoping that one of you guys could help me out with this.
     
    Last edited: Aug 12, 2022