Sometimes it is necessary to exclude a folder or certain prefabs from being processed by the Nested Prefabs plugin. This can be to improve performance, or because certain prefabs with custom scripts are not compatible with Nested Prefabs.
Nested Prefabs allows you to specify folders or a pattern and exclude all prefabs in these folders or that match the pattern. You can do this by adding the following line(s) to an editor script that initializes at editor startup:
NestedPrefabsPostprocessor.IgnoreFolder( "Assets/My Folder" );
NestedPrefabsPostprocessor.IgnorePattern( "My Regex" );
The folder passed into the IgnoreFolder method should be a path relative to the project root.
The pattern passed into the IgnorePattern folder should be a Regular Expression.
In order to initialize a script at startup, you have to add the InitializeOnLoadMethod attribute to the method. The easiest (and recommended) way to ignore a folder or pattern is to add the code to the NestedPrefabsPreferences script located in the Plugins/Visual Design Cafe/Nested Prefabs/Editor folder.