- Home /
How do I distinguish between a *.cs and a plugin?
When I load different unity packages I get some files in the plugin folder and some not. I know this seems to be the case depending on how the package was originally created but I'm curious how to tell the difference so I can better reorganize my project.
Answer by Mike 3 · Aug 05, 2010 at 05:26 PM
If files are in the plugins folder, it's because someone wanted to use them from another language usually (e.g. c# files in there are accessible from js files outside of there).
The folder is compiled earlier than almost every other folder, so it's a good one to use for multi language projects
Note - this does not make the cs files in there plugins
So if I have multiple c# files how then do I know what's supposed to be in the plugin folder? c# is Greek to me. $$anonymous$$y best guess now is that there's classes defined in the code (assu$$anonymous$$g I can use these in another script) making it a plugin. Other than that I've no idea what to look for.
Plugins are compiled dlls or bundles, nothing to do with the plugins folder besides it being a convenient place to put the native ones (You don't put managed plugins in there). To find out what c# files have to be in the plugins folder, just take them out one by one, if it complains, then it needs to be in there. The only other way is to work out which c# classes are referenced from js classes, but that'll take quite a long time
Your answer
Follow this Question
Related Questions
Extension for Unity 1 Answer
UnityPlayer in an Android MapActivity 3 Answers
How to call a custom object from a C# dll 1 Answer
is loading files impossible in plugin? 0 Answers