GlitchEnzo / NuGetForUnity

A NuGet Package Manager for Unity
MIT License
3.19k stars 315 forks source link

/unityplugin folder hierarchy is lost; only files in root are copied #269

Closed dfields-msft closed 5 years ago

dfields-msft commented 5 years ago

/unityplugin folder hierarchy is lost; only files in root are copied

Native plugins typically need to deliver different flavors for different architectures, which can't co-exist in the same folder since the files have the same names. Instead, they're typically placed in subfolders by architecture/platform, but the N4U handling of /unityplugin targets only copies files in the root folder, and discards subfolders. Instead, the whole unityplugin folder should be copied recursively to Assets/Plugins.

dfields-msft commented 5 years ago

@jwittner FYI

jwittner commented 5 years ago

Hey @dfields-msft, doing some research on the need for these folders. It looks like the plugins folder is no longer necessary and hasn't been since Unity 5.x.

"Plugins are no longer required to be placed in Assets\Plugins\<Platform> folders"

Doing some tests using OpenCV I'm seeing this to be true in practice.