1
0
forked from cgvr/DeltaVR

properly replace archery target object's child with generated object

This commit is contained in:
2025-12-16 11:56:56 +02:00
parent 0cb92b2442
commit 5796887f79
6 changed files with 413 additions and 498 deletions

View File

@@ -48,7 +48,7 @@ public class ModelGenerationBox : MonoBehaviour
string modelPath = await PipelineManager.Instance.GenerateModelAsync(inputPrompt);
lastModelPath = modelPath;
GameObject spawnedObject = await PipelineManager.Instance.SpawnModel(modelPath);
GameObject spawnedObject = await PipelineManager.Instance.SpawnModel(modelPath, true);
spawnedObject.transform.parent = modelSpawnPoint;
spawnedObject.transform.position = modelSpawnPoint.position;