Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Cant build stand alone PC, Error CS0012

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

  1. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    792
    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:
    6,139
  3. nsmith1024

    nsmith1024

    Joined:
    Mar 18, 2014
    Posts:
    792
    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?
     
unityunity