Upgraded desktop sample to work with Apple Silicon and Unity 2022 LTS. #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello Unity Maintainers,
This project is quite old and based on Unity 2018, but it is the only (simple) reference from Unity for an example of plugins:
https://docs.unity3d.com/Manual/PluginsForDesktop.html
The macOS version had two main issues:
First, it still included the .dylib as a target, which is removed now.
this fixes: #8
Second, it had no copy build phase to move the
ASimplePlugin.bundleto the correct location in the Unity Project and had to be done manually (undocumented).I've added this step, similarly to how you handled it in the other example, see:
Further, Unity 2022 file structure is now
Assets/<Platform>/Pluginsas opposed toAssets/Plugins/<Platform>.Someone would have to update the Windows example, but I doubt it's too much work.
Cheers 👍