I want to have different ParticleSystems on a gameObject depending on the game situation (e.g. red particles when hurting, green/blue particles for different buffs).
These particle systems should be instanciated from a prefab. As a prefab has to be a GameObject and not a component, my idea was to add the particle system to a transform and use the resulting GameObject as a Prefab. This Prefab is then added as a child to a GameObject.
This works fine with emission over time. However, it does not work with emission by distance, as the cuhild’s position remains unchanged relative to the parent when the parent moves. Adding the particle system with the exact same settings to the parent however works.
Is there a workaround to calculate the distance for emission based on the parent’s position and not the child’s?
These are the settings of the particle system: