# SyncIfNeeded(string[], string[], string[], string[], string[])

> Parses the new and changed assets for the selected external code editor.

## Definition

* **Type:** Method
* **Namespace:** [Unity.CodeEditor](/engine/7000.0/script-reference/unity/codeeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
void SyncIfNeeded(string[] addedFiles, string[] deletedFiles, string[] movedFiles, string[] movedFromFiles, string[] importedFiles)
```

### Parameters

**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): The files added through the Unity Editor.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): The files deleted through the Unity Editor.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): The new locations of files that were moved.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): The original locations of the files in `movedFiles`, in the same order.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): The files that were imported without being added through the Unity Editor.
