private static AssetMoveResult OnWillMoveAsset(string fromPath, string toPath, string[] newPaths, string[] NewMetaPaths)
{
AssetMoveResult assetMoveResult = AssetMoveResult.DidNotMove;
if (!InternalEditorUtility.HasTeamLicense())
{
return(assetMoveResult);
}
assetMoveResult = AssetModificationHook.OnWillMoveAsset(fromPath, toPath);
foreach (Type current in AssetModificationProcessorInternal.AssetModificationProcessors)
{
MethodInfo method = current.GetMethod("OnWillMoveAsset", BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic);
if (method != null)
{
AssetModificationProcessorInternal.RequireTeamLicense();
object[] array = new object[]
{
fromPath,
toPath
};
if (AssetModificationProcessorInternal.CheckArgumentsAndReturnType(array, method, assetMoveResult.GetType()))
{
assetMoveResult |= (AssetMoveResult)((int)method.Invoke(null, array));
}
}
}
return(assetMoveResult);
}