Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Unity-compatible Boxed.Mapping.Unity package #608

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Razenpok
Copy link

This PR adds a new Boxed.Mapping.Unity package that fixes Unity incompatibilities described in #592

Implementation notes:

  • I've decided to not introduce a new UNITY define symbol. Instead, I've made a separate copy of the Factory.cs file and added a <Compile Remove> tag to the .csprojs. I think this is a more readable and maintainable approach.
  • I've added [MethodImpl(MethodImplOptions.AggressiveInlining)] attribute to the Factory<T>.CreateInstance() method. This will hint Unity to try and inline the method.
  • I don't know all the details of the build pipeline, so you might need to do some additional actions for the package to appear on NuGet

Closes #592

@github-actions github-actions bot added the enhancement Issues or pull requests adding an enhancement. label May 17, 2023
@RehanSaeed
Copy link
Member

Build is failing. Haven't had time to take a look yet.

@Razenpok
Copy link
Author

Okay, thanks for update

@Razenpok
Copy link
Author

@RehanSaeed any updates on this one?

@RehanSaeed
Copy link
Member

RehanSaeed commented Sep 11, 2023

Apologies, I'm having difficulty finding the time. Not had a chance to see what is wrong with the build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues or pull requests adding an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Boxed.Mapping Unity3D support
2 participants