Code Monkey home page Code Monkey logo

Comments (6)

neuecc avatar neuecc commented on August 26, 2024

It was a known issue that if an AutoLayout (like DateTimeOffset) was included in struct, it would be incompatible, but I see that it also happens in class.
#107 (comment)
The only way to be sure is to transfer it to a Sequential DateTimeOffset and compatible struct for communication. ......

from memorypack.

buzzers avatar buzzers commented on August 26, 2024

Okay, so now there's no way to make it work without changing the type?

from memorypack.

neuecc avatar neuecc commented on August 26, 2024

Yes, I don't have any good ideas.

from memorypack.

buzzers avatar buzzers commented on August 26, 2024

Will future versions consider handling the struct memory layout issues of different versions and platforms? This is bad and leaves us completely unable to use the struct type, as functionality can be broken at any time.

In addition, will Unity support custom formatters?

from memorypack.

neuecc avatar neuecc commented on August 26, 2024

The standard .NET structs that use Auto Layout are only DateTime, DateTimeOffset, and ValueTuple. Since DateTime is a single field, the potential issues may arise with DateTimeOffset and ValueTuple.

We are considering support for custom formatters in Unity.

from memorypack.

buzzers avatar buzzers commented on August 26, 2024

Regarding Unity's custom formatter I wrote an implementation and will probably submit a PR this weekend.
The issue that has not been figured out yet is how to define the interface type returned by GetFormatter.

from memorypack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.