Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Obi Rod Blueprint in Script
#6
(08-01-2021, 11:00 AM)MonaGermany Wrote: Hi !
No I don't get any errors. It works, that the Solver and the rod are added to the Scene. But the Blueprint is not added to the rod and the rod is not assigned to the solver...

Both things work for me... can you step trough the code using the debugger, and see if it actually hits these two lines?:

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;
Reply


Messages In This Thread
Obi Rod Blueprint in Script - by MonaGermany - 07-01-2021, 09:18 AM
RE: Obi Rod Blueprint in Script - by josemendez - 07-01-2021, 09:55 AM
RE: Obi Rod Blueprint in Script - by MonaGermany - 08-01-2021, 08:38 AM
RE: Obi Rod Blueprint in Script - by josemendez - 08-01-2021, 10:50 AM
RE: Obi Rod Blueprint in Script - by MonaGermany - 08-01-2021, 11:00 AM
RE: Obi Rod Blueprint in Script - by josemendez - 08-01-2021, 11:30 AM
RE: Obi Rod Blueprint in Script - by MonaGermany - 08-01-2021, 12:59 PM
RE: Obi Rod Blueprint in Script - by josemendez - 08-01-2021, 02:09 PM
RE: Obi Rod Blueprint in Script - by MonaGermany - 08-01-2021, 02:28 PM
RE: Obi Rod Blueprint in Script - by josemendez - 08-01-2021, 02:36 PM
RE: Obi Rod Blueprint in Script - by MonaGermany - 08-01-2021, 02:47 PM