---
tags:
    - "Input, Player, Controls, Local, Multiplayer, Co-op"
---

# Player Input Has Missing Required Devices

[Input](../index.md) / [Player Input](index.md) / **Player Input Has Missing Required Devices**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

The Has Missing Required Devices property of the Player Input component

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;
using UnityEngine.InputSystem;

namespace VisualScript.Runtime
{
    [Get]

    [Title("Player Input Has Missing Required Devices")]
    [Category("Input/Player Input/Has Missing Required Devices")]
    [Description("The Has Missing Required Devices property of the Player Input component")]

    [Image(typeof(IconBoltOutline), ColorTheme.Type.Blue)]
    [Keywords("Input, Player, Controls, Local, Multiplayer, Co-op")]

    [Serializable]
    public class GenTypeBool_PlayerInput_HasMissingRequiredDevices : TypeBool
    {
        [SerializeField] private GetGameObject m_PlayerInput = new GetGameObject(
            new GenTypeGameObject_PlayerInput()
        );

        public override bool GetPreview(GameObject source)
        {
            GameObject instance = this.m_PlayerInput.GetPreview(source);
            if (instance == null) return default;

            PlayerInput component = instance.GetComponent<PlayerInput>();
            return component != null ? component.hasMissingRequiredDevices : default;
        }

        public override bool Get(Args args)
        {
            PlayerInput instance = this.m_PlayerInput.Get<PlayerInput>(args);
            return instance != null
                ? instance.hasMissingRequiredDevices
                : default;
        }

        public override string ToString()
        {
            return $"{this.m_PlayerInput} Has Missing Required Devices";
        }

        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}
```

