Skip to content

Commit b3d9f66

Browse files
author
David Kline
committed
replace some warnings with simple log messages
1 parent d73d6cd commit b3d9f66

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Assets/MRTK/Core/Utilities/Editor/SpatializerUtilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static void SaveSettings(string spatializer)
6969
{
7070
if (string.IsNullOrWhiteSpace(spatializer))
7171
{
72-
Debug.LogWarning("No spatializer was specified. The application will not support Spatial Sound.");
72+
Debug.Log("No spatializer was specified. The application will not support Spatial Sound.");
7373
}
7474
else if (!InstalledSpatializers.Contains(spatializer))
7575
{

Assets/MRTK/Core/Utilities/Gltf/Serialization/GltfUtility.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ public static GltfObject GetGltfObjectFromJson(string jsonString)
170170

171171
if (gltfObject.extensionsRequired?.Length > 0)
172172
{
173-
Debug.LogError($"Required Extension Unsupported: {gltfObject.extensionsRequired[0]}");
173+
Debug.LogError("One or more unsupported glTF extensions required. Unable to load the model.");
174174
return null;
175175
}
176176

177-
for (int i = 0; i < gltfObject.extensionsUsed?.Length; i++)
177+
if (gltfObject.extensionsUsed?.Length > 0)
178178
{
179-
Debug.LogWarning($"Unsupported Extension: {gltfObject.extensionsUsed[i]}");
179+
Debug.Log("One or more unsupported glTF extensions in use, ignoring them.");
180180
}
181181

182182
var meshPrimitiveAttributes = GetGltfMeshPrimitiveAttributes(jsonString);

0 commit comments

Comments
 (0)