⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    CharacterInteractionHandler MonoBehaviour

    Overview

    The CharacterInteractionHandler behaviour is attached to a character and handles interaction with interactive objects in the scene.

    Inspector

    CharacterInteractionBase

    Properties

    Name Type Description
    Max Distance Float The maximum distance from the camera to trigger interactions.
    Tick Rate Int How frequently does the handler cast forward to check for an object. Smaller numbers mean more responsive but more wasted calculations.
    Interaction Layers LayerMask The layers that valid interaction targets must use to be interacted with.
    Collision Layers LayerMask The layers that will be checked against when casting for valid interaction targets. This should include obstacles that block your view of interactables.
    Error Audio FpsCharacterAudio The character audio clip to play for an invalid interaction.

    See Also

    Interactive Objects

    FpsCharacterAudioHandler

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