Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove / add particle attachment at runtime?
#4
(31-07-2020, 04:05 PM)Lockpickle Wrote: Thanks! This didn't seem to work when I tried it, but maybe I had something wrong. I did get it working eventually using a proxy object. But also, what if I want to attach something to a part of the rope other than a control point, can I somehow add a particle group dynamically?

Yes, a particle group is simply a scriptable object that contains a list of particle indices. You can create one (using CreateInstance, the usual way for scriptable objects) and populate its particleIndices list with the indices of the particles you want to attach. Then, assign it to the attachment.
Reply


Messages In This Thread
RE: Remove / add particle attachment at runtime? - by josemendez - 31-07-2020, 04:14 PM