Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question New Input System compiler error CS2015

Discussion in 'Editor & General Support' started by LagMakesGames, Apr 29, 2022.

  1. LagMakesGames

    LagMakesGames

    Joined:
    Mar 25, 2021
    Posts:
    7
    I have this error:

    error CS2015: 'G:\MyProject\Library\PackageCache\com.unity.inputsystem@1.3.0\InputSystem\
    Controls\InputControlAttribute.cs' is a binary file instead of a text file


    This error goes away after uninstalling the Input System package, but reappears upon import again. This error also disables and turns my inputactions into a default file. I have searched online and tried a bunch of solutions, but none of them worked. Can someone please help?


    (Apologies for weird formatting, I don't really post to the forums.)
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,519
    That seems kinda weird... try closing Unity and deleting that Library/PackageCache folder... Unity should just pull it all back down again. Obviously make backups if you haven't already, or use source control.
     
    LagMakesGames likes this.
  3. LagMakesGames

    LagMakesGames

    Joined:
    Mar 25, 2021
    Posts:
    7
    Thank you! This worked like a charm!
     
    Kurt-Dekker likes this.
  4. zhaozony

    zhaozony

    Joined:
    Jan 7, 2020
    Posts:
    29
    I got this problem, all .cs files in those folders are all left without postfix. AnimationTriggers.cs is just AnimationTriggers.
    And Delete folders and repull from network doesnt work for me.