Quantcast
Channel: Questions in topic: "namespace"
Viewing all articles
Browse latest Browse all 398

UnityEngine.UI.dll namespace doesn't exist for 2018.3.0b11 managed plugin

$
0
0
I'm using the beta build for Unity 2018.3.0b11, but I had this issue in 2018.3.0b11 and 2018.2.16f1 as well. I'm trying to build a Class Library into a Unity Managed Plugin. I follow the "Step by step guide for Visual Studio" in this guide: https://docs.unity3d.com/Manual/UsingDLL.html I also watched this video: https://unity3d.com/learn/tutorials/topics/scripting/writing-plugins I moved some classes over that I want to share between projects. When I built it, I have been getting errors like this: The type or namespace name 'EventSystems' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?) The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?) The type or namespace name 'UIBehaviour' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?) I have seen articles and blog posts and forum threads all around this happening and followed every guide I could. Close both VS and Unity, check versions, run `Assets -> Reimport All`, etc. Nothing works. Finally, I just found where the `UnityEngine.UI.dll` was being referenced from the autogenerated project that Unity creates, copied it's location at `\Editor\Data\UnityExtensions\Unity\GUISystem\UnityEngine.UI.dll`, referenced it within my plugin class library manually from here. Everything builds just fine when I do that. This doesn't seem correct because none of the guides mention this step. Is there any better way to link these references or some way to get this to work normally? I was hoping for a NuGet package or... something. This seems like a really bad way to create a managed plugin.

Viewing all articles
Browse latest Browse all 398

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>