⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    InputMenu MonoBehaviour

    Overview

    The InputMenu behaviour is added to UI elements that should block character input when visible. It pushes the FpsInputContext.Menu context when enabled and removes it when disabled. An example would be adding this to the root of the dialogue UI of another asset that handles conversations with NPCs. When the UI is activated, the character input will stop and allow you to chat to the NPC without accidentally shooting them.

    Inspector

    InputMenu

    Properties

    Name Type Description
    Show Mouse Cursor Boolean Should the mouse cursor be released when this object is activated (or component enabled). Set to false for things like loading screens.

    See Also

    NeoFPS Input

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