diff --git a/Source/Engine/Core/Config/LayersAndTagsSettings.cs b/Source/Engine/Core/Config/LayersAndTagsSettings.cs index 911a131a7..92063b27d 100644 --- a/Source/Engine/Core/Config/LayersAndTagsSettings.cs +++ b/Source/Engine/Core/Config/LayersAndTagsSettings.cs @@ -42,6 +42,9 @@ namespace FlaxEditor.Content.Settings /// The layer names. public static string[] GetCurrentTerrainLayers() { + #if FLAX_TESTS + return Array.Empty(); + #else string[] layerNames = GameSettings.Load().TerrainLayers; for (int i = 0; i < layerNames.Length; i++) @@ -51,6 +54,7 @@ namespace FlaxEditor.Content.Settings } return layerNames; + #endif } [LibraryImport("FlaxEngine", EntryPoint = "LayersAndTagsSettingsInternal_GetCurrentLayers", StringMarshalling = StringMarshalling.Custom, StringMarshallingCustomType = typeof(FlaxEngine.Interop.StringMarshaller))]