System.TimeSpan not supported by default in the AOT dll

Issue #627 wontfix
Miley Hollenberg created an issue

I was having issues with System.TimeSpan variables becoming undefined/unusable inside arrays due to Odin not recognising them even though it’s a valid C# class and work perfectly inside the editor.

After adding System.TimeSpan to the AOT Generation list my build worked again and I can now see the actual data being displayed properly.

I am using unity 2018.4.14f1 and Odin 2.1.7.0. The build was for iOS so on a Mac Platform, tested on both Unity Cloud Build and my local Macbook Pro. Editor Only Mode is turned off.

Comments (3)

  1. Tor Esa Vestergaard
    • changed status to open

    I am slightly confused, here - the issue is that the AOT scan does not detect System.TimeSpan in particular, even though it functions normally in other cases? Or are you expecting System.TimeSpan to be AOT supported by default, even without a scan?

  2. Miley Hollenberg reporter

    Both actually, when I tried the scan it didn’t change anything so I had to manually add it to the list. I would assume that System.TimeSpan is automatically supported by default yes

  3. Tor Esa Vestergaard

    This doesn't strictly speaking look like a bug. All types, even basic ones like int, need generated support - it's just how the system works on AOT. As such I'm marking it wontfix.

  4. Log in to comment