printstaya.blogg.se

Unity particle playground unity forum
Unity particle playground unity forum








I would have pre-rendered the outline especially if your target device is mobile, but used Playground to achieve other types of effects when you need precise control over their appearance or to apply turbulence. This would automatically be the case for particles with the same material, but require a lot more CPU and GPU to achieve the same effect. As seen on the images you've provided they've reused the same material to batch for less drawcalls. I suppose it would only make sense if you have many different shapes, otherwise a pre-rendered particle effect on a sprite would be more efficient. Although it seems inefficient if you need to apply this effect to many objects on screen at once. I haven't played Hearthstone but watching a gameplay video, it's definitely a possible task for the Playground framework. Either you could zero out the velocities by value or choose to stick particles to their source positions by ticking Forces > Only Source Positions.

#Unity particle playground unity forum manual

Once you have a couple of minutes over there's a manual explaining the structure.Ĭlick to expand.If particles are moving it's because they have forces applied, by default a standard particle system has Initial Local Velocity and Gravity. If you instantiate a particle system a Playground Manager will be created automatically if none exist on beforehand. Basically just move your particle system into any other parent you'd like. The Playground Manager is needed in the scene to simulate the particle systems and takes care of the Global Manipulators, it is not necessary to be parent of a particle system. In this case you would publish to yourself, but you are also encouraged to put a price tag on your particle systems and distribute them. Step by step is explained in the Publish Guide on the official site. From there you can create new presets and export them through the Preset Wizard. The Playground also comes with some ready preset methods, which basically is its own structure of handling prefabs and displaying them with an icon in the Playground Wizard (Window > Particle Playground). In version 2.1 you'll also be able to set Sorting Layer and Order In Layer directly in the Rendering tab.Ĭlick to expand.Great! Yes, a particle system is like any other GameObject, you can create prefabs of it and export it as a UnityPackage. Finally scale your State's transform to fit your card and you should see a result similar to this:Īnother option is to use Source > Paint and by hand paint your particle positions on a plane collider in the scene.

unity particle playground unity forum

Then in Rendering tab you can set Color Source to Lifetime Color (using Source will leave you restricted to the pixel colors in your State), then apply any Lifetime Coloring and set Material you'd like. This is how I setup mine:ĥ) In the Forces tab you may want to set Only Source Positions to restrict particles to their distributed source points. Increase Particle Count until you see the result you were after.

unity particle playground unity forum

You can hit Set Particle Count in your unfolded new State to get the correct amount of particle per source point.Ĥ) In Particle Settings you may want to apply some Source Scatter to dissolve the original pixel structure. After hitting Create you should see your new State live in the Scene View. You will also most likely want to scale it down as each pixel with scale 1 will be one unit, but all settings can also be edited after creation in the list of States. In the Unity's Importer Settings make sure Read/Write is enabled and that you don't filter or compress it, you could set it up like this:ģ) Create a new State in your particle system ( Source > State > Create State), set your border image as Texture. Paint out your source positions and leave the rest as transparent.Ģ) Save the image as PSD or PNG in your project. The amount of pixels in the texture will determine how many source points will be created, any fully transparent pixels will be excluded (unless Playground Manager > Advanced > Build Zero Alpha Pixels is enabled).ġ) Create an image of 32x32 pixels (any non-power of 2 may create unwanted pixels when Unity scales the image at import). On to the important stuff, as you have a predetermined flat shape I'd suggest to use State as Source along with a texture.








Unity particle playground unity forum