AoT classes generator produces errorneous code for static classes

Forums 💬 NodeCanvas ⚙️ Support AoT classes generator produces errorneous code for static classes

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16506
    zsoik
    Participant

      Someone added UnityEngine.AI.NavMesh to the preferred types, and now the generated AOTClasses.cs doesn’t compile anymore:

      error CS0718: ‘NavMesh’: static types cannot be used as type arguments

      I’ve manually added a check to exclude types that are “IsAbstract && IsSealed” (https://stackoverflow.com/questions/1175888/determine-if-a-type-is-static) to prevent the generator from generating the relevant spoofed generic classes (but not sure if totally correct fix).

      NodeCanvas 2.9.7 / Unity 2019.2.14f1 / netstandard2

      #16508
      zsoik
      Participant

        I just took 3.0 for a test drive and imported to a empty project, then resetting preferred types to default and exporting AOTClasses.cs I get tons of compiler errors like

        and

         

        #16507
        Gavalakis
        Keymaster

          Hey,

          Sorry for the late reply.

          I’ve just fixed this issue and resend a new hotfix version to the asset store. I have also sent you the fix in discord (right after your message)

          Please let me know if everything works for you correctly now.

          Thanks!

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.