We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e220b93 commit b3ce15aCopy full SHA for b3ce15a
Assets/MRTK/Core/Utilities/Gltf/Serialization/ConstructGltf.cs
@@ -360,7 +360,10 @@ private static async Task<Material> CreateStandardShaderMaterial(GltfObject gltf
360
material.mainTexture = gltfObject.images[gltfMaterial.pbrMetallicRoughness.baseColorTexture.index].Texture;
361
}
362
363
- material.color = gltfMaterial.pbrMetallicRoughness.baseColorFactor.GetColorValue();
+ if (gltfMaterial.pbrMetallicRoughness?.baseColorFactor != null)
364
+ {
365
+ material.color = gltfMaterial.pbrMetallicRoughness.baseColorFactor.GetColorValue();
366
+ }
367
368
if (gltfMaterial.alphaMode == "MASK")
369
{
0 commit comments