⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    TeleportZone1Way MonoBehaviour

    Overview

    The TeleportZone1Way behaviour is used to teleport a character to a target transform position and rotation. It can be set with an optional delay and exposes events to control charge up and teleport / cancel effects.

    Inspector

    TeleportZone1Way

    Properties

    Name Type Description
    Target Transform Transform The transform to teleport to. The character will match its position and orientation.
    Teleport Delay Float The time between entering the trigger zone and teleporting. Allows for effects and feedback to communicate what's going on.
    On Entered UnityEvent An event fired as soon as a character enters the teleport trigger zone.
    On Cancelled UnityEvent An event fired if the character leaves before the teleport delay is over.
    On Teleported UnityEvent An event fired after the character is teleported.

    See Also

    InteractiveObject

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX