简体   繁体   中英

What unity dll version should I have?

I'm using visual studio to code my Unity3D project. Currently it is not accepting the following code:

 using UnityEngine.EventSystems;
 using UnityEngine.UI;

When I look at the property inspector for the UnityEngine.dll it says that the "Runtime Version" is: v2.0.50727

My Unity Editor version is 5.1.1f1 Personal

  • Is the dll version wrong?
  • is it too old or too new?
  • what is the most recent version?
  • do I need to download something?
  • where do I get it?

What you're missing is a reference to UnityEngine.UI.dll .

Right click on your project, and select Add References. UnityEngine.UI.dll is usually under

Path_To_Unity_Installation/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM