public static Hash128 CalculateTargetHash(GUID guid, BuildTarget target) { #if LIVELINKS_ASSETPIPELINE return(LiveLinkBuildImporter.GetHash(guid.ToString(), target)); #else // Always calculate & return the new hash // TODO: target is not taken into account, this will be included when sbp moves into the asset pipeline var cache = new BuildCache(); var cachedInfo = CalculateTargetCachedInfo(cache.GetCacheEntry(guid, AssetBundleBuildVersion), target, null); // TODO: Script Property dependency // TODO: SBP returns recursive dependencies which is too much for Live Link, this will need to be changed when sbp moves into asset pipeline var targetHash = cachedInfo.Asset.Hash; foreach (var dependency in cachedInfo.Dependencies) { var dependencyHash = dependency.Hash; HashUtilities.ComputeHash128(ref dependencyHash, ref targetHash); } return(targetHash); #endif }
internal static Hash128 CalculateTargetHash(GUID guid, BuildTarget target, ImportMode importMode) { return(LiveLinkBuildImporter.GetHash(guid.ToString(), target, importMode)); }
public static Hash128 CalculateTargetHash(GUID guid, BuildTarget target) { return(LiveLinkBuildImporter.GetHash(guid.ToString(), target)); }
public static Hash128 CalculateTargetHash(GUID guid, BuildTarget target, AssetDatabaseExperimental.ImportSyncMode syncMode) { return(LiveLinkBuildImporter.GetHash(guid.ToString(), target, syncMode)); }