diff --git a/Assets/_PROJECT/Scripts/3DModeGeneration/ModelGenerationPipelineStarter.cs b/Assets/_PROJECT/Scripts/3DModeGeneration/ModelGenerationPipelineStarter.cs index 7349bd5d..e829703d 100644 --- a/Assets/_PROJECT/Scripts/3DModeGeneration/ModelGenerationPipelineStarter.cs +++ b/Assets/_PROJECT/Scripts/3DModeGeneration/ModelGenerationPipelineStarter.cs @@ -33,7 +33,7 @@ public class ModelGenerationPipelineStarter : MonoBehaviour meshRenderer.material = activeMaterial; StartModeGenerationPipeline(); - //LoadModel("D:\\henrisel\\DeltaVR3DModelGeneration\\3d-generation-pipeline\\models\\2025-11-02-17-03-37\\0\\mesh.glb"); + //LoadModel("D:\\henrisel\\DeltaVR3DModelGeneration\\3d-generation-pipeline\\models\\2025-11-17-16-13-33\\mesh.glb"); } } @@ -131,8 +131,12 @@ public class ModelGenerationPipelineStarter : MonoBehaviour Transform spawnedObjectMainTransform = spawnedObject.transform.GetChild(0).transform; - MeshCollider collider = spawnedObjectMainTransform.GetChild(0).transform.gameObject.AddComponent(); + GameObject spawnedObjectBody = spawnedObjectMainTransform.GetChild(0).transform.gameObject; + MeshCollider collider = spawnedObjectBody.AddComponent(); collider.convex = true; + MeshRenderer renderer = spawnedObjectBody.GetComponent(); + renderer.material.SetFloat("metallicFactor", 0); + spawnedObjectMainTransform.gameObject.AddComponent(); }