- Home /
Assign particle collision in code?
Hi, I am making a game that involves instantiating a GameObject with a ParticleSystem. On the particle system, i have assigned a plane in the collision that is a cube in the game. However, when i instantiate it, the plane is not found.
So my question is, is there a way to assign the Transform plane of a ParticleSystem in code when i instantiate it? Or is there another way?
Any help is greatly appreciated, thanks.
@12boulla Your question is confusing, are you talking about the plane you can assign from the particle inspector? The one you asked about in your previous question, Some more details on the question or an image would help, Thanks NightLucidity
Thanks for the reply. I was talking about the plane in the inspector. But i figured out that changing collisions to be world in the inspector solved the issue.
Your answer
Follow this Question
Related Questions
Mysterious plane created on enabling particle collision 1 Answer
Syncing particle system in Photon Unity Networking 1 Answer
Spawn blood particle system prefab where sword hits enemy 1 Answer
Detect when 2 particle systems collide with each other? 0 Answers
Network.Destroy and collision; destroying correct object. 1 Answer