Bug / Crash Can't generate rope in runtime. (Unity 2019.3.10f1) - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html) +--- Thread: Bug / Crash Can't generate rope in runtime. (Unity 2019.3.10f1) (/thread-2178.html) |
Can't generate rope in runtime. (Unity 2019.3.10f1) - hecali_aj - 18-04-2020 Hello, a code that I use to generate ropes in runtime stopped working when I updated from Unity 2019.2 to 2019.3 Here's the error that appears: Here's the code that I use to generate the rope: I call the SetupRopeObject method in Awake, then run the CreateRopeRoutine 0.2 seconds later. Any help would be appreciated! Thanks! RE: Can't generate rope in runtime. (Unity 2019.3.10f1) - hecali_aj - 19-04-2020 Any help please? RE: Can't generate rope in runtime. (Unity 2019.3.10f1) - josemendez - 19-04-2020 (19-04-2020, 06:22 AM)hecali_aj Wrote: Any help please? Hi, It’s weekend, barely a day since your original post, and i can’t give you an answer off the top of my head for this one. Please be patient, I need to actually run your code and debug it. Will do so asap (probably tomorrow morning) and let you know my findings. Edit: if you could post your code as text instead of images, it would allow me to copy-paste, saving me from having to rewrite it from scratch. Cheers, RE: Can't generate rope in runtime. (Unity 2019.3.10f1) - hecali_aj - 28-04-2020 (19-04-2020, 09:33 AM)josemendez Wrote: Hi, Hello! Sorry for the bump. Here's the code: Code: private void Awake() The part that causes the error is this: Code: if (particleIndex < m_Actor.solverIndices.Length) Which is called from the Bind() function here: Code: public ObiParticleGroup particleGroup RE: Can't generate rope in runtime. (Unity 2019.3.10f1) - hecali_aj - 20-05-2020 Sorry for bumping, but it's been 3 weeks and I really need some help on this one. RE: Can't generate rope in runtime. (Unity 2019.3.10f1) - josemendez - 20-05-2020 (20-05-2020, 06:22 PM)hecali_aj Wrote: Sorry for bumping, but it's been 3 weeks and I really need some help on this one. Hi! My apologies for not looking at this earlier, I have a lot of support requests lately. By looking at the code, I see you’re creating the attachments before assigning the blueprint to the rope. This will most likely result in the attachments trying to attach a particle that does not exist yet, because the blueprint hasn’t been instantiated. Move both attachments after the rope.ropeBlueprint = _ropeBlueprint; line. That should work. RE: Can't generate rope in runtime. (Unity 2019.3.10f1) - hecali_aj - 21-05-2020 (20-05-2020, 08:41 PM)josemendez Wrote: Hi! It finally worked, thanks for the help! |