⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    InteractiveObject MonoBehaviour

    Overview

    The InteractiveObject behaviour is used to represent any object in the world that the player can interact with via the use button.

    Inspector

    InteractiveObject

    Properties

    Name Type Description
    Tooltip Name String The name of the item in the HUD tooltip.
    Tooltip Action String A description of the action for use in the HUD tooltip, eg pick up.
    Interactable On Start Boolean Can the object be interacted with immediately.
    Hold Duration Float How long does the use button have to be held for interaction.
    On Used UnityEvent An event that is triggered when the object is used.
    On Cursor Enter UnityEvent An event that is triggered when the player looks directly at the object.
    On Cursor Exit UnityEvent An event that is triggered when the player looks away from the object.

    See Also

    Interactive Objects

    Unity Events

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