hi
unity 4.3 particle system in not visible in 2D mode . there is also no soring mode for particle system like shuriken ? What can I do ? Am I missing something?
thanks for your reply.
hi
unity 4.3 particle system in not visible in 2D mode . there is also no soring mode for particle system like shuriken ? What can I do ? Am I missing something?
thanks for your reply.
Take a look at these:
http://answers.unity3d.com/questions/577288/particle-system-rendering-behind-sprites.html
http://forum.unity3d.com/threads/211406-Unity-4-3-Particles-and-Sorting-Layers-(-)
I found a solution that worked for me. When working with sprites, I opened Sorting layers options and saw that there are 7 builtin sorting layers:
0 is default
1 is transparent FX
Particles are transparent FX. And all the sprites that you want your particles to be in front of must be at sorting layers lower than 1. Fortunately, negative values are possible so I’ve put my sprites to -1, -2 etc. It worked right away.
@sdgd thanks for your replay . I am sure that my camera is positioned properly . For now I write a script that get particles of Shuriken particle system using particleSystem.GetPartcle() then I iterate through each particle and position an spriteRenderer that was instantiated at start up of the game to that particle and it worked.
This is not a real answer, why did you mark it as solved? The problem hasn't been solved.
– Stone-LegionCheck out this plugin. It exposes the sorting layer properties on the Shuriken particle system.
[Disclaimer - Its my own plugin but its free right now]
"[Disclaimer - Its my own plugin but its free right now]" ...well, in the event that he decides to try selling it instead, just use this as opposed to wasting money to perform simple tasks: // Set the sorting layer of the particle system. particleSystem.renderer.sortingLayerName = "foreground"; particleSystem.renderer.sortingOrder = 2;
– b1naryatr0phyFIX!
None of the above helped me. It is really a camera disposition, even if hard to notice.
Try:
Set your Scene-View to 3D and check the position of the camera. In 2D it is highly possible that the camera is fixed to the bottom left of your screen.
What i did: Set x and y position of camera AND particle system to 0. Then set particle z-position to 300 and camera to -50. It was visible then.
Here a good solution Particle Sorting Layer - Pastebin.com
That's got to be a real wrong name choice here. I would never expect to look into that class. Resources tells me it deals with resources folder, so how come this find them in the scene??!! Is that another intern job at Unity? Anyway, it does the job indeed.
– fafaseSimply set depth layer on backgrounds object to -2 and it will work ![]()
For me, it fixed by resetting transform. When I first created my particle game object, the transform values would be auto configured by unity. resetting it solved my problem.
you must realize there's no such thing as 2D mode. you must have camera set to orthographic iirc, after that you see 3D in sorta 2D but you'll still see everything so I'm figureing out you have your camera too close to the objects on the scene just barelly so you can see them but particles go in 3D and you can't see them 1/2, ... so I suggest you bring the camera back
– sdgdI am having the same problem, I cannot get particles to display. Using the demo 2d platformer, placed a particle system in the scene. I can see them without problem in the scene editor, but in game mode, it's as if they aren't being generated (but they are).
– Stone-Legion