Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Can I attach particeattachment in script?
#10
(Today, 03:03 AM)gahyun11 Wrote: Hello. Thank you for good explanation. I checked all particles in any specific skirt asset obi skinnedcloth blueprint we have. I got the particle positions as array then arranged them by y position so I can get the hightest particles's position at first  and I realized, positions of the particles in the skirt asset are different even if they look like they are located in same y position, so I checked the skirt mesh and realized, waistline's vertices in the skirt mesh are located in all different height with tiny gap.

This might be obvious, but you should *not* rely on the Y values of all waist particles being *exactly* the same. Even if whoever modeled the skirt made the wait perfectly horizontal, vertices won't have the same height due to floating point error. You should pick one representative particle (for instance the topmost one) and then compare all others with it, using a threshold.

(Today, 03:03 AM)gahyun11 Wrote: In this situation, I think in obi skinned cloth blueprint generation process, particles are created in same height if the cloth asset's mesh's vertices are located in same height or mesh's triangles are located in same height. Is this right?

Initial particle positions are just copied from vertex positions. If your vertex weld distance or minimum particle distance are not zero, they might be moved around afterwards to meet these constraints.

(Today, 03:03 AM)gahyun11 Wrote: And I succeeded making a partical group adding specific particles into the particle group in script, but everytime I try to check the blueprint by clicking "Edit" button, UI of the inspector is messed! Please check a screenshot below. Did i something wrong?

Quite possibly, editor UI breaking in this way usually means there's been an error while rendering the editor. Did you add any custom code to the blueprint and/or blueprint editor?

(Today, 03:03 AM)gahyun11 Wrote: this is my code to create a particle group and add specific indices's particles into the particle group

When/how are you calling this code?

kind regards,
Reply


Messages In This Thread
RE: Can I attach particeattachment in script? - by josemendez - 11 hours ago