MessagePack-CSharp/MessagePack-CSharp

FormatterNotRegisteredException: Unity.Mathematics.int2 is not registered in resolver

Open

#1603 aperta il 13 apr 2023

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)C# (688 fork)batch import
help wantedunity

Metriche repository

Star
 (5056 star)
Metriche merge PR
 (Merge medio 6m) (3 PR mergiate in 30 g)

Descrizione

Is your feature request related to a problem? Please describe.

The Unity Mathematics package has several simple numeric types that I imagine could be easily supported within the UnityShim

Describe the solution you'd like

When I use int2 it throws the error: "FormatterNotRegisteredException: Unity.Mathematics.int2 is not registered in resolver". Would like for int2 to have a registered format

Describe alternatives you've considered

I could change to a Vector2, VectorInt2, or two separate int fields, but those solutions wouldn't be as graceful.

Additional context

Supporting Unity mathematics seems like a good idea if you want to continue to attract Unity users to this package. https://docs.unity3d.com/Packages/com.unity.mathematics@1.0/manual/index.html

Guida contributor