Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Access game classes from within Editor extension?

$
0
0
Hello everyone, I'm currently working on an Editor extension for Unity, and therefore the classes I'm working with reside in the "Editor" folder. I now need to access classes from the actual project DLL (in other words: the classes within the project outside the Editor folder). To make more clear what I mean, here's what VisualStudio displays: ---------- **Assembly-CSharp-Editor-vs** *this is where my classes are placed* **Assembly-CSharp-vs** *this is the assembly I want to access* ---------- The question is: What is the best way to do this? I imagine that one could find out the project location on the OS file system, then navigate to *projectRoot/obj/Debug/Assembly-CSharp.dll* ... and grab the assembly DLL file from there, but is there a more elegant way to solve this? By the way, since this editor extension should work for all projects, I need to do this via reflection of course. Thanks, Alan

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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