Search Unity

Bug Adding VFX Graph package 8.3.1 break my project compilation

Discussion in 'Visual Effect Graph' started by masta-yoda, Dec 5, 2020.

  1. masta-yoda

    masta-yoda

    Joined:
    Apr 19, 2020
    Posts:
    91
    I have created a new URP Unity 2020.1 project for a VR game, installed the XR Interaction Toolkit and everything worked as expected until I installed VFX 8.3.1:

    upload_2020-12-5_3-43-17.png

    When the XR interaction toolkit is installed, it asked to disable the old input system and VFX cannot compile because of a missing field which is wrapped int conditional compilation block:

    Code (CSharp):
    1. #if ENABLE_LEGACY_INPUT_MANAGER
    2.         float m_CachedSmoothValue = 0.0f;
    3. #endif
    What did I miss in my setup?
     
  2. PaulDemeulenaere

    PaulDemeulenaere

    Unity Technologies

    Joined:
    Sep 29, 2016
    Posts:
    154
    Hello,
    This is a recent regression introduced by 8.3.1.
    Your setup is correct, it's an unexpected issue. Sorry for the inconvenience.
    It occurs when the new input system is installed and enabled.

    You can follow this issue (soon available) but meanwhile, you can also simply switch the
    Active Input Handling (in Player settings, Edit > Project Settings > Player) to "Both" instead of "New" to avoid this problem.
     
    thyrus017 and masta-yoda like this.
  3. masta-yoda

    masta-yoda

    Joined:
    Apr 19, 2020
    Posts:
    91
    got it! THank for the quick workaround! Appreciate your help