Search Unity

Cant build stand alone PC, Error CS0012

Discussion in 'Windows' started by nsmith1024, Aug 8, 2019.

  1. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    643
    Hello,

    Im building the PC standalone build, and i keep getting this error

    Assets/Standard Assets/CrossPlatformInput/Scripts/TouchPad.cs(49,13): error CS0012: The type `UnityEngine.ISerializationCallbackReceiver' is defined in an assembly that is not referenced. Consider adding a reference to assembly `UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'

    Anybody knows how to fix? I cant build standalone anymore

    Im using Unity 2018.1.0.f2

    Thanks
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    5,352
  3. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    643
    Im using Unity 2018.1 so its not that old, thanks anyway for the tip!

    I goto to the Unit menu and select import crossplatform input to import the standard one from unity, and i still get this error. Shouldnt it import the one for that unity version?