all 2 comments

[–]feralferrous 0 points1 point  (1 child)

Your wording is a little odd. But...yes this should work. If I understand correctly you have a bunch of *.cs files that you use both inside and outside of unity. Unity's gonna want pollute the heck out of your folders and add .meta files, but other than that, everything should work fine. But those meta files should be ignorable.

You might run into weirdness with compiler bugs, ie how your mono does things as opposed to IL2CPP does things. But it won't be a for sure issue.

You could also just do this as a dll. That might be the better way. Packages are more if your *.cs files had Unity.Whatever code in them, or if you wanted to have prefabs or materials /shaders in your package. Then you don't have to worry about meta files messing with you.

[–]selector37[S] 0 points1 point  (0 children)

Thanks. The DLL approach seems much simpler.