Just something I cooked up when I was creating my first game in Unity (Hover World). I cleaned it up a bit and am releasing it for anyone interested (feel free to delete it, rewrite it, change it and use it for any purpose).
It’s a script that generates lightning bolts or sparks from one object to another. I’m not sure how useful it is, but I had fun creating it. There are some limitations noted in the script header.
After you import the package you will find a unity file called test.unity. Its a simple sphere and plane and if you press ‘play’ you should see some bolts/sparks between the two objects. More info can be found in the script.
Cheers,
Paul
51471–1883–$lightning_142.unitypackage (8.33 KB)
Nice effort. 
Although the effect you’ve created is fairly basic, the script is well documented and covers a good range concepts.
I had a quick play with it and discovered that the fade out effect (value) only seems to work when the plane isn’t beneath the sphere.
Thanks! Yes, the fade out effect is a bit of a misnomer. It’s simply the distance where the sparks end if there is no object below the sphere…
Cheers,
Paul
I just tried doing a NEW inside unity, and the iMPORT PACKAGE with your package, and I got a beep and nothing happened. How do I try out your example, sorry I am very new to Unity. :?:
That’s pretty much the way to do it… maybe you are running Unity 1.6 instead of 2.0?
Cheers,
Paul
I have the 2.0 demo, just trying it out today, when i click import I still show my island assets all other screens are empty.
In Unity 2.0:
Step 1 - make a new project
Step 2 - double-click the package file while that new project is still open
Step 3 - open the scene called “test”
Step 4 - press play (or cmd-P) and watch the lightning

If you have a project open and double-click or import a package file then the package contents are dumped into that project folder and may be lost/jumbled in with everything else. In the case of the island demo you’ve just added the package file contents into a rather large and involved project making those new assets harder to find. Not lost, just harder to find (look for a scene called “test” in your case now).