Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question AssemblyBuilder and Entities.ForEach

Discussion in 'Entity Component System' started by mf_andreich, Aug 16, 2020.

  1. mf_andreich

    mf_andreich

    Joined:
    Jul 7, 2017
    Posts:
    38
    Hi all!
    I have little problem. I try generate some code outside of Assets folder and build it in dll after by AssemblyBuilder api. But I get strange behavior: Entities.ForEach not replaced with generated by IlPostProcessor code. I miss something? Can I launch post processing of assembly by hand?
     
  2. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,752
  3. mf_andreich

    mf_andreich

    Joined:
    Jul 7, 2017
    Posts:
    38
    Its not about do code gen on dll itself. =) I use unity api (https://docs.unity3d.com/2020.1/Documentation/ScriptReference/Compilation.AssemblyBuilder.Build.html) for building generated cs files and expect that it was builded like regular cs file in project.
     
  4. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,752
    MFAndreich likes this.