Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Creating Attachment Point at RunTime
#1
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
Reply
#2
(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?
Reply
#3
(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
Reply