UnityEditor.AssetModificationProcessorInternal.OnWillMoveAsset C# (CSharp) Method

OnWillMoveAsset() private static method

private static OnWillMoveAsset ( string fromPath, string toPath, string newPaths, string NewMetaPaths ) : AssetMoveResult
fromPath string
toPath string
newPaths string
NewMetaPaths string
return AssetMoveResult
        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;
        }