01-12-2023, 01:37 PM
(This post was last modified: 01-12-2023, 01:39 PM by josemendez.)
(01-12-2023, 12:41 PM)KBTIT_ Wrote: Particle group cannot be changed because the list box does not appear when selected.
It is always None.
This means your blueprint contains no particle groups. Particle groups are something that you must create yourself, both when creating a blueprint via the editor or programmatically. How would Obi know which particles you're interested in grouping together otherwise? You must somehow define which particles should be affected by the attachment, and this is done by creating a new particle group.
To add a particle group to a blueprint, use
Code:
var group = blueprint.AppendNewParticleGroup(name);
then add the desired particle indices to the group:
Code:
group.particleIndices.Add(particleIndex);
The name of the particle group will then appear to be selected in attachments.
kind regards,