Search Unity

Bug Unexpected node type

Discussion in 'Burst' started by HernandoNJ, Oct 11, 2022.

  1. HernandoNJ

    HernandoNJ

    Joined:
    May 13, 2018
    Posts:
    75
    The following error is thrown in the Unity editor 2021.2.0 (Burst 1.6.6) after each code compilation:

    Code (CSharp):
    1. Unexpected node type.
    2. UnityEditor.Compilation.CompilationPipeline:GetAssemblies (UnityEditor.Compilation.AssembliesType)
    Class:
    Code (CSharp):
    1. internal static class BurstReflection
    This line of code
    Code (CSharp):
    1. var assemblyList = CompilationPipeline.GetAssemblies(AssembliesType.Editor);
    Assemblies types:
    Code (CSharp):
    1. namespace UnityEditor.Compilation
    2. {
    3.   /// <summary>
    4.   ///   <para>Flags for Assembly.</para>
    5.   /// </summary>
    6.   public enum AssembliesType
    7.   {
    8.     /// <summary>
    9.     ///   <para>Selects assemblies compiled for the editor including test assemblies.</para>
    10.     /// </summary>
    11.     Editor,
    12.     /// <summary>
    13.     ///   <para>Selects assemblies compiled for the player including test assemblies.</para>
    14.     /// </summary>
    15.     Player,
    16.     /// <summary>
    17.     ///   <para>Selects assemblies compiled for the player excluding test assemblies.</para>
    18.     /// </summary>
    19.     PlayerWithoutTestAssemblies,
    20.   }
    21. }
     
  2. tim_jones

    tim_jones

    Unity Technologies

    Joined:
    May 2, 2019
    Posts:
    287