Search Unity

  1. Click here to receive a gift with your purchase of Unity Pro or Unity Enterprise.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Monitor saved text file for changes

Discussion in 'Scripting' started by eco_bach, Aug 13, 2020.

  1. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,423
    Trying to architect a resource heavy Windows desktop application and thinking of ways to improve performance by removing need for real-time socket connections.
    Is there a way for Unity to monitor a saved text file and only load and parse it when the text file has been modified?
     
  2. adehm

    adehm

    Joined:
    May 3, 2017
    Posts:
    280
    Should be able to check the date modified and compare that to the last time the program edited it.
     
  3. R1PFake

    R1PFake

    Joined:
    Aug 7, 2015
    Posts:
    319
unityunity