UnityEditor.AssetServer.HasDeletionConflict C# (CSharp) Method

HasDeletionConflict() private method

private HasDeletionConflict ( string guid ) : bool
guid string
return bool
        public static extern bool HasDeletionConflict(string guid);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

示例#1
0
        private bool DoShowDiff(bool binary)
        {
            List <string>      list  = new List <string>();
            List <CompareInfo> list2 = new List <CompareInfo>();

            for (int i = 0; i < this.selectedLV1Items.Length; i++)
            {
                if (this.selectedLV1Items[i])
                {
                    int serverItemChangeset = AssetServer.GetServerItemChangeset(this.downloadConflicts[i], -1);
                    int ver = (!AssetServer.HasDeletionConflict(this.downloadConflicts[i])) ? -1 : -2;
                    list.Add(this.downloadConflicts[i]);
                    list2.Add(new CompareInfo(serverItemChangeset, ver, (!binary) ? 0 : 1, (!binary) ? 1 : 0));
                }
            }
            bool result;

            if (list.Count != 0)
            {
                AssetServer.CompareFiles(list.ToArray(), list2.ToArray());
                result = true;
            }
            else
            {
                result = false;
            }
            return(result);
        }
All Usage Examples Of UnityEditor.AssetServer::HasDeletionConflict
AssetServer