Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Obi Rod Blueprint in Script
#7
(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?:

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;
So I added Breakpoints to these two lines and debugged it. 
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 ...
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