Unity. Activator component

RayFire Activator component

Using Activator component you can activate (turn them to full dynamic objects) Inactive objects.

Activation group

Type: Defines when Inactive object will be activated.

  1. On Enter: Inactive object will be activated when Activator will Enter it’s collider.
  2. On Exit: Inactive object will be activated when Activator will Exit it’s collider.

Delay: Delay in seconds after which object will be activated.

Animation group

Duration: Defines position animation duration in seconds.

Scale Animation: Allows to animate Scale.

Position Animation: Defines the way position will be animated for Activator.

  1. By Position List: Activator will use positions which were defined by user manually using Add Position button.
  2. By Static Line: Activator will be animated along Line renderer define for Line variable, if line will be moved during animation Activator will not be affected.
  3. By Dynamic Line: Activator will be animated along Line renderer define for Line variable, if line will be moved during animation Activator will be moved as well.

Line: Line Renderer component which will be used for position animation

Position List: List of positions defined manually.

Animation can be triggered by public method:
public void TriggerAnimation()

stopped by :
public void StopAnimation()

and reset by:
public void ResetAnimation()