Missing UnityEngine.InputSystem in a fresh project

Hello,

I have an issue with UnityEngine.InputSystem. Using unity 2021.3.4f1. InputSystem 1.3.0
I’ve tried to regenerate the project files but with no success.
The project is a basic 3D with default render pipeline.

using UnityEngine;

#if ENABLE_INPUT_SYSTEM
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.Controls;
#endif

namespace com.ootii.Input
{
    /// <summary>
    /// Base class used to abstract how input is retrieved. Inherit from this class
    /// and then implement the function as needed in order to allow other objects
    /// to process input using your input component.
    /// </summary>
    [AddComponentMenu("ootii/Input Sources/Unity Input System Source")]
    public class UnityInputSystemSource : MonoBehaviour, IInputSource, IViewActivator
    {

#if ENABLE_INPUT_SYSTEM

        /// <summary>
        /// Holds onto the PlayerInput object that contains the actions.
        /// </summary>
        public PlayerInput _PlayerInput;
        public virtual PlayerInput PlayerInput
        {
            get { return _PlayerInput; }
            set { _PlayerInput = value; }
        }

#endif

You have to add the input system as dependency of the assembly definition for your scripts. If you don‘t have an assembly definition you need to create one.

1 Like