Obi Official Forum
Bug / Crash Creating Attachment Point at RunTime - 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 Creating Attachment Point at RunTime (/thread-1909.html)



Creating Attachment Point at RunTime - rhys.newbury - 10-02-2020

Hello,

When adding a new particle attachment to the ObiRope in play mode. The rope will not attach to the object. 

To reproduce this a new scene was created with two cubes and an ObiRope. A particle attachment was created to one cube, before running. Whilst in play mode, a new particle attachment is added between the rope and the other cube. This attachment seems to have no effect on the rope.

How do we create particle attachments dynamically?

Using Unity 2019.3.0f6 and Obi Rope 5.1

Thankyou


RE: Creating Attachment Point at RunTime - josemendez - 10-02-2020

(10-02-2020, 04:22 AM)rhys.newbury Wrote: Hello,

When adding a new particle attachment to the ObiRope in play mode. The rope will not attach to the object. 

To reproduce this a new scene was created with two cubes and an ObiRope. A particle attachment was created to one cube, before running. Whilst in play mode, a new particle attachment is added between the rope and the other cube. This attachment seems to have no effect on the rope.

How do we create particle attachments dynamically?

Using Unity 2019.3.0f6 and Obi Rope 5.1

Thankyou

Hi, we are unable to reproduce this. Can you share the code you used to create the attachment?


RE: Creating Attachment Point at RunTime - zkkzkk32312 - 15-02-2020

(10-02-2020, 08:36 AM)josemendez Wrote: Hi, we are unable to reproduce this. Can you share the code you used to create the attachment?

Hi josemendez,

I am having the same issue.
If I create the attachment before runtime but have the component disabled,
and enable the component at runtime it will work.

but if you create the attachment component at runtime by code it will never work.
possibly because the solver does some setup work in the awake/start and creating attachment at runtime will missed those setup.

Obi version 5 with Unity 2019.2