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