Instantiate GameObject with nested Particle Systems
In my game I have a sprite with a 2D box collider. I want it so that when the user clicks on the object a game object will be instantiated. This game object is from a asset package I have, It has a particle system, and then some nested particle systems. I have a script attached to the game object that is to be clicked. You can assign a game object to it, and then in code I will like to instantiate that game object. What seems to happen is that the nested particle systems do not seem to play. I have attached a picture of the hierarchy of the to be instantiated game object
left, slice, and right have a particle system that do not seem to play. Below is my code for what I am doing right now.
public GameObject referenceParticleContainer;
private GameObject tempContainer;
void OnMouseDown()
{
Debug.Log ("Mouse Down");
if (tempContainer == null)
{
tempContainer = Instantiate (referenceParticleContainer, transform.position, Quaternion.identity) as GameObject;
}
}
Could someone please help me get the nested particle systems playing. Only the top most particle system seems to be doing anything.
Your answer

Follow this Question
Related Questions
I'm trying to Instantiate particles in 2D game, but it didn't show up. 1 Answer
Instantiated Particle System not random 4 Answers
How do execute explosion when instantiated object hits a particle? 1 Answer
Spawning limited GameObjects at a specific position not working 1 Answer
spawn object every 10 score points 1 Answer