Requires Unity 5.1.1 or higher.两点间突然放电,使用线性渲染器和动画纹理在两点之间渲染闪电。Abrupt electric discharge between two points
Lightning effect. Renders lightning between two points using Linerenderer and animated texture.
Package contains 3 animations Each animation represented with 3 textures (total 9 textures):
64 tiles 4096x4096 pixels
32 tiles 2048x4096 pixels
16 tiles 2048x2048 pixels
Since version 1.1 all textures are black&white.
Tiles are organized in columns. You can reduce texture size by removing one of the columns or scale whole texture down a couple of times.
Add LightningScript.cs script to the object then specify target game object and desired material.
Script will add LineRenderer in the runtime and continuously alternate between tiles and animate LineRenderer vertices.