---
title: An error occurred when using the Input Class function.
slug: world-sdk-guide/an-error-occurred-when-using-the-input-class-function
docTags: 
createdAt: 2024-09-02T08:34:13.136Z
---

When using the Legacy Input Class provided by Unity in ZEPETOScript, the following message appears in the Unity Editor: `Error: c# exception:You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.` An error can occur.

If this error occurs, try the following method.

![](https://api.archbee.com/api/optimize/fCt3n1oCa8rgNJ8fw9I2N-v_TB8QEgoWqFS8QGprzbP-20240904-102412.png)

:::hint{type="info"}
**📘 Unity Input**
[https://docs.unity3d.com/ScriptReference/Input.html](https://docs.unity3d.com/ScriptReference/Input.html)
:::



## Please check Player Settings.

1\) Open the Unity Project Settings window through File > Build Settings > Player Settings.

![](https://api.archbee.com/api/optimize/fCt3n1oCa8rgNJ8fw9I2N-Ts-LdYsCCSIwrFZMoSeZq-20240904-102412.png)



2\) Please check Project Settings > Player > Active Input Handling\* option.
If the option is not `Both`, please change it to `Both`.

![](https://api.archbee.com/api/optimize/fCt3n1oCa8rgNJ8fw9I2N-8He5EEr4kcZWVDKA1Ogs0-20240904-102412.png)



3\) When changing options, a pop-up window will appear, indicating that Unity Editor needs to be restarted. Click “Apply” to restart Unity Editor.

::Image[]{src="https://api.archbee.com/api/optimize/fCt3n1oCa8rgNJ8fw9I2N-Dii8z4f539lugsSrfc43n-20240904-102412.png" size="52" width="253" height="226" position="center" showCaption="false"}

