Firstborn/Library/PackageCache/com.unity.ide.rider@3.0.20/Rider/Editor/RiderScriptEditorDataPersis...
Schaken-Mods 9092858a58 updated to the latest editor
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
2023-05-07 17:43:11 -05:00

37 lines
975 B
C#

using System;
using UnityEditor;
using UnityEngine;
namespace Packages.Rider.Editor
{
#if UNITY_2020_1_OR_NEWER // API doesn't exist in 2019.4
[FilePath("Library/com.unity.ide.rider/PersistedState.asset", FilePathAttribute.Location.ProjectFolder)]
#endif
internal class RiderScriptEditorPersistedState : ScriptableSingleton<RiderScriptEditorPersistedState>
{
[SerializeField] private long lastWriteTicks;
[SerializeField] private long manifestJsonLastWriteTicks;
public DateTime? LastWrite
{
get => DateTime.FromBinary(lastWriteTicks);
set
{
if (!value.HasValue) return;
lastWriteTicks = value.Value.ToBinary();
Save(true);
}
}
public DateTime? ManifestJsonLastWrite
{
get => DateTime.FromBinary(manifestJsonLastWriteTicks);
set
{
if (!value.HasValue) return;
manifestJsonLastWriteTicks = value.Value.ToBinary();
Save(true);
}
}
}
}