- Home /
Get Assemblies for plugins and project only
Hi. currently I'm looking in every Assembly to find subclasses of an abstract class present in my plugin (onRecompile). But I guess that's not smart at all. since System and UnityEngine are not using this class.
So is there a method out there that gets me just the plugin and project assemblies? Also i heard about that Monobehaviour derived classes are being put in their own assembly. What would it be called then and how can i access it?
Not that I know of. But note: You can limit the assemblies you look into, by first checking if each references the assembly containing your base class. (https://msdn.microsoft.com/en-us/library/system.reflection.assembly.getreferencedassemblies(v=vs.110).aspx)
Only if it does, do you need to spend time checking the results of that assembly's getTypes() (https://msdn.microsoft.com/en-us/library/system.reflection.assembly.gettypes(v=vs.110).aspx)
Answer by starstablesimon · Jun 18, 2018 at 07:51 AM
This might be what you are looking for.. (but probably way too late now :))
Your answer
Follow this Question
Related Questions
Use assembly class directly without the assembly object? 0 Answers
Need to move monobehaviours to a DLL, will deserialization still work? 0 Answers
How to use non-MonoBehaviour class in a unity Script 2 Answers
Sockets unsupported with Unity Pro License 1 Answer
csc.rsp works in editor but throws an error when building 0 Answers