Skip to content

Instantly share code, notes, and snippets.

View ErikRikoo's full-sized avatar

Erik Kubiak ErikRikoo

View GitHub Profile
@ErikRikoo
ErikRikoo / ContinuousInputHandler.cs
Last active October 19, 2021 21:07
A useful script that allows you to run the method ApplyInputValue continuously while pressing a button in the new Unity Input System
using System.Collections;
using UnityEngine;
using UnityEngine.InputSystem;
public abstract class ContinuousInputHandler<InputType> : MonoBehaviour
where InputType : struct
{
private InputType m_ReadValue;