File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Assets/MRTK/Core/Utilities/Gltf/Serialization Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -171,12 +171,20 @@ public static GltfObject GetGltfObjectFromJson(string jsonString)
171171 if ( gltfObject . extensionsRequired ? . Length > 0 )
172172 {
173173 Debug . LogError ( "One or more unsupported glTF extensions required. Unable to load the model." ) ;
174+ for ( int i = 0 ; i < gltfObject . extensionsRequired . Length ; ++ i )
175+ {
176+ Debug . Log ( $ "Extension: { gltfObject . extensionsUsed [ i ] } ") ;
177+ }
174178 return null ;
175179 }
176180
177181 if ( gltfObject . extensionsUsed ? . Length > 0 )
178182 {
179183 Debug . Log ( "One or more unsupported glTF extensions in use, ignoring them." ) ;
184+ for ( int i = 0 ; i < gltfObject . extensionsUsed . Length ; ++ i )
185+ {
186+ Debug . Log ( $ "Extension: { gltfObject . extensionsUsed [ i ] } ") ;
187+ }
180188 }
181189
182190 var meshPrimitiveAttributes = GetGltfMeshPrimitiveAttributes ( jsonString ) ;
You can’t perform that action at this time.
0 commit comments