I’ve tried using new classes from 4.6 in VS2013 but it doesn’t see UnityEngine.UI namespace whatsoever. I’ve been reimporting VST package, rebuilding project files, restarting Unity and reference always ends up with yellow exclamation mark (pic related)
“using UnityEngine.UI” ends up throwing syntax error
From the comment section in the VS2012 Tools for Unity:
Hello!
I’m using the VSTU with the new Unity
4.6 beta. There are now a new DLL to be deployed to UnityAssemblies folder:
UnityEngine.UI.Dll. Without it, there
will be a reference error in the
generated VS project.
I was able to fix this manually
(getting the missing dll from [Unity
install
folder]\Editor\Data\UnityExtensions\Unity\GUISystem\4.6.0\Standalone)
and copying it to ([Unity project
folder]\Library\UnityAssemblies) but
it will be awesome if you could
release an updated version of this
extension.
If it didn’t solve your problem, you need to activate a reference called “UnityEngine.UI.Player” under the Project Assembly. That did the trick for me.