Effects Shu Unique Lasers Volume Tutorial: laser effects

Tip: Select the right side of the directory, you can quickly find what you need

If help you to progress together - little attention.

 

 

First, the special effects shots Town House

    

 

 

Second, explain the effects script

  • FirePoint: the starting point of the laser (the suggestions put down the camera, before the muzzle, etc. Note that the starting point to move it to the front of the camera, or you'll see the glow of laser emission points less than the.)
  • EndPoint: laser end point.
  • Grow Width: initially it grew to number, after which it will become fine. Laser beginning very thin, then thicker, then thinner.
  • Grow Speed: laser thickening to the maximum time required.
  • Shrink Speed: laser speed of contraction. Laser thickest to thinnest start, and then contracted to a stable weight. This is the rate of contraction.
  • Maximun Length: maximum length of the laser, just in case did not hit anything, this will be the maximum length.
  • Disable Delay: Release the mouse, after the abolition of emission, radiation slowly disappear. Disable Delay is the disappearance of the time spent.
  • EndVFX: the end of the laser system all the particles
  • PsVFX: the early and middle laser system of all particles
  • TrailVFX: leave a trace particle system
  • TrailInterval: the spacing between each path as a continuous path -0

 

 

Third, to achieve special effects tutorial

1, Basic Configuration

  • Import SDK, a new scene.
  • The effects LaserBeam01_Red preform onto the scene

 

2, the ray parameter set

The reference binary configuration

 

3, to achieve the left mouse button, the preform laser emitter

The script mount to the object, the scene is assigned to the laser script. Press the left mouse button emits radiation.

    public LaserScript laserScript;

    void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            laserScript.EnableLaser();
        }

        if (Input.GetMouseButton(0))
        {
            laserScript.UpdateLaser();
        }

        if (Input.GetMouseButtonUp(0))
        {
            laserScript.DisableLaserCaller(laserScript.disableDelay);
        }
    }

 

Enjoy!

Published 329 original articles · won praise 85 · views 190 000 +

Guess you like

Origin blog.csdn.net/weixin_38239050/article/details/104889575