Hello. I have some scripts (.cs) with classes that I want to use in my project, but i dont want to copy them to the Asset folder. I am using them across multiple projects so i need to keep them separate.
Is that possible?
I don’t know of a built in method of doing this in Unity. But what you could do is use a system file reference (I have never done it before, but a google search should find you the answer). This would basically be a file or folder that actually just points to the real thing.
If they are not present in the asset builder they are just text, they are no code at all later on as only code present in Assets will be compiled and used in the assemblies and be part of the runtime code.
So the answer is a clear no unless you want to compile them to an assembly outside and then go fully through reflection instead of directly using code etc
Just compile them as a DLL in a separate MD/VS project and point the build output path do your assets folder.
Ok, thanks for the answers. I guess i will have to go with the .dll’s