AOTClassesGenerator creates wrong Type names for Nested Types

Forums 💬 NodeCanvas ⚙️ Support AOTClassesGenerator creates wrong Type names for Nested Types

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18141
    zsoik
    Participant

      If the preferred types list contains a nested type, e.g.

      then the AOTClassesGenerator will put lines like the following into the AOTClasses.cs:

      class NodeCanvas_Framework_Variable_Bar : NodeCanvas.Framework.Variable<Foo+Bar>{}

      which, because of the +, isn’t liked very much by the compiler.

      NC 2.6.2 / Unity 5.5.0p3

      #18142
      Gavalakis
      Keymaster

        Thanks for the report.
        While a bit dirty, a quick fix would be to do this by the end of the GenerateAOTClasses method of AOTClassesGenerator.cs:

        I can’t think of any reason for this to not work in all cases right now 🙂

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