Ejemplo n.º 1
0
        public void MakeList(List <UnityEngine.Object> assets)
        {
            infoList = new List <AssetBuildTimeStampInfo>();
            foreach (var asset in assets)
            {
                AssetBuildTimeStampInfo info = new AssetBuildTimeStampInfo();
                info.path = AssetDatabase.GetAssetPath(asset);
                info.guid = AssetDatabase.AssetPathToGUID(info.path);
                string fullpath = Application.dataPath.Substring(0, Application.dataPath.Length - 6) + info.path;
                info.timeStamp = System.IO.File.GetLastWriteTime(fullpath).Ticks;
                infoList.Add(info);
            }

            infoList.Sort((a, b) => (a.guid.CompareTo(b.guid)));
        }
Ejemplo n.º 2
0
 public bool Compare(AssetBuildTimeStampInfo target)
 {
     return(this.path == target.path && this.guid == target.guid && this.timeStamp == target.timeStamp);
 }