Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Light Explosion Animation troubles

Discussion in 'Editor & General Support' started by klindeman, Aug 23, 2005.

  1. klindeman

    klindeman

    Joined:
    Jun 13, 2005
    Posts:
    295
    I need to edit the Light explosion animation that comes in the standard assets. I need the range of the light to be larget, but it seems like it is tied to the animation. Whenever I change the range in the inspector, it doesnt change in game, and then when I take off the Animation, it works (though the light cuts off suddenly). I liked the effect it made the light do, but I need the range to be a lot bigger.
     
  2. Jonathan Czeck

    Jonathan Czeck

    Joined:
    Mar 17, 2005
    Posts:
    1,713
    Feel free to use the attached script if it'd help. You just stick it on a separate light object. (It'll auto destroy when it's faded to black so make sure and not put it on something important ;-) )

    Cheers,
    -Jon
     

    Attached Files:

  3. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Take a look at the new animation documentation in 1.1.
    It shows how to edit animation clips.
     
  4. Jonathan Czeck

    Jonathan Czeck

    Joined:
    Mar 17, 2005
    Posts:
    1,713
    Would an animation clip be at all significantly faster than using a script?

    -Jon
     
  5. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    I think it should be quite a bit faster.
    In this particular case though i doubt there will be any visible performance difference, no matter how you do it.
     
  6. NicholasFrancis

    NicholasFrancis

    Joined:
    Apr 8, 2005
    Posts:
    1,587
    The speed difference is negligble - I did a lot of animated lights for the FPS demo, and the main thing I thought about was:

    * Do you want many different colored lights to go on and off at the same time?
    Use a script to multiply a fade value in with the original color. In animations, this would require a different animation for each light color, so making the animation a bit slower would be a hassle.

    * Do you want flickering / other randomized effects when using the light?
    Use scripts. Setting up a randomly flickering light is hell with scripting.

    * Do you want precise artist control?
    Use animations...