diff --git a/Unity Runtime Recorder/Scripts/FbxExporter/FbxObjectsManager.cs b/Unity Runtime Recorder/Scripts/FbxExporter/FbxObjectsManager.cs index cd64fe6..0ee5662 100644 --- a/Unity Runtime Recorder/Scripts/FbxExporter/FbxObjectsManager.cs +++ b/Unity Runtime Recorder/Scripts/FbxExporter/FbxObjectsManager.cs @@ -23,12 +23,12 @@ public void EditTargetFile (string targetFilePath) string newData = ""; // find start of the Objects - int startIndex = sourceData.IndexOf ("Objects: {\n"); + int startIndex = sourceData.IndexOf ("Objects: {", StringComparison.Ordinal); // copy data into new newData = sourceData.Substring (0, startIndex); - startIndex += ("Objects: {\n").Length; + startIndex += ("Objects: {").Length; StringReader reader = new StringReader (sourceData);