Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Can I attach particeattachment in script?
#21
(17-10-2024, 10:55 AM)josemendez Wrote: As I just answered in the above post, it is not possible to do what you want. Obi is explicitly designed to disallow this use case. Unity generally also disallows this, except for a handful of asset types.

kind regards,
Hello. Sorry for writing same question twice. I thought I didnt post a reply cause I didnt refresh webpage(My bad). Anyway, I followed your advice and it works surprisingly well! Thanks a lot! Now Im trying to give properities value on these groups with each different value in script. For example, skin radius,mass and etc. For this I keep searching obi cloth blueprint, skinnedclothblueprint, obi actor and couldnt find a way to set properties value except tether scale and tethercompliance. 

At the same time, some of our t shirts clothings have narrow waist periphery size, so its particle keeps going through into any bottoms clothings. What Im thinking to solve this issue is to enlarge clothing scale ( not using stretch compliance or stretching scaling, just purely scale) then shrink the clothing back to original size in runtime. I tried to set scale bigger before runtime then set it back to orignal size in runtime but it didnt work as I thought - just like typical resizing in unity. The clothing didnt go back to original size at all. Is there any way to resize clothing during the runtime?

* I just found coat.skinConstraintsData.batches[i].constraintCount and I got batch information(I dont know if this is a right term or not) with referring to this website(  Set Cloth Properties with script (virtualmethodstudio.com) ) And now I know how to get and set skin radius property value but I dont know how to get and set mass property value yet


   
**This is a screen shot of the issue of the t shirts clothing. As you can see, the particles of each clothings - t shirts and skirts - are going through each other. I used stretchscaling and stretchCompliance on both of clothings, and the skirt is enabled first then after few seconds, t shirts is enabled.
Reply


Messages In This Thread
RE: Can I attach particeattachment in script? - by gahyun11 - 21-10-2024, 03:25 AM