From 9f36ba464d40c347586beef82e04a84c0b90842b Mon Sep 17 00:00:00 2001 From: vigo Date: Thu, 6 Nov 2025 15:09:32 +0100 Subject: [PATCH] Change FacebookImporter to skip all non-FacebookSDK files right away. This saves a lot of needless string concatenations (two per Set*Configuration call) --- Facebook.Unity.Editor/FacebookImporter.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Facebook.Unity.Editor/FacebookImporter.cs b/Facebook.Unity.Editor/FacebookImporter.cs index 0484ab63..900acd5f 100644 --- a/Facebook.Unity.Editor/FacebookImporter.cs +++ b/Facebook.Unity.Editor/FacebookImporter.cs @@ -38,6 +38,8 @@ static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAsse { foreach (string str in importedAssets) { + if (!str.StartsWith("Assets/FacebookSDK/")) continue; + currentAsset = str; SetCanvasDllConfiguration("/Facebook.Unity.Canvas.dll");