添加缺失插件
This commit is contained in:
25
Assets/Asset Usage Finder/Editor/Data/AssetDependencies.cs
Normal file
25
Assets/Asset Usage Finder/Editor/Data/AssetDependencies.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AssetUsageFinder {
|
||||
[Serializable]
|
||||
public class AssetDependencies {
|
||||
public string[] DependencyGuids;
|
||||
public string HashString;
|
||||
|
||||
[NonSerialized] Hash128 _hashCache;
|
||||
|
||||
public Hash128 DependencyHash {
|
||||
get { return _hashCache.Equals(default(Hash128)) ? Hash128.Parse(HashString) : _hashCache; }
|
||||
set {
|
||||
_hashCache = value;
|
||||
HashString = value.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
public bool Contains(string guid) {
|
||||
return DependencyGuids.Any(d => StringComparer.InvariantCultureIgnoreCase.Equals(guid, d));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user