08-01-2021, 12:59 PM
(08-01-2021, 11:30 AM)josemendez Wrote: Both things work for me... can you step trough the code using the debugger, and see if it actually hits these two lines?:So I added Breakpoints to these two lines and debugged it.
Code:// instantiate and set the blueprint:
rod.rodBlueprint = ScriptableObject.Instantiate(rodBlueprint);
// parent the cloth under a solver to start simulation:
rod.transform.parent = solver.transform;
It stopped at the first line - at this point only the solver was added to scene.
When I clicked continue the rod was added to the scene (without blueprint).
It did not stop at the second break Point at all ...